mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
14 lines
202 B
C
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);
|
||
|
}
|
||
|
|