about summary refs log blame commit diff stats
path: root/util.c
blob: 08737ee995164c42e7b9e315625ecd12e3137100 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                             
#include <time.h>

void get_time(char *thetime)
{
    time_t rawtime;
    struct tm *timeinfo;

    time(&rawtime);
    timeinfo = localtime(&rawtime);

    strftime(thetime, 80, "%H:%M", timeinfo);
}