0
1
mirror of https://github.com/profanity-im/profanity.git synced 2025-11-11 02:59:41 -05:00
Files
profanity/util.c
James Booth f020ec9c82 Time output
2012-02-09 00:48:17 +00:00

14 lines
202 B
C

#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);
}