new time info
This commit is contained in:
parent
45ff5ccf31
commit
9197fee8a9
@ -1,5 +1,5 @@
|
|||||||
# sic version
|
# sic version
|
||||||
VERSION = 0.5
|
VERSION = 0.6
|
||||||
|
|
||||||
# Customize below to fit your system
|
# Customize below to fit your system
|
||||||
|
|
||||||
|
2
sic.c
2
sic.c
@ -49,7 +49,7 @@ pout(char *channel, char *msg) {
|
|||||||
static char timestr[18];
|
static char timestr[18];
|
||||||
time_t t = time(0);
|
time_t t = time(0);
|
||||||
|
|
||||||
strftime(timestr, sizeof(timestr), "%a %R", localtime(&t));
|
strftime(timestr, sizeof(timestr), "%F %R", localtime(&t));
|
||||||
fprintf(stdout, "%-8.8s: %s %s\n", channel, timestr, msg);
|
fprintf(stdout, "%-8.8s: %s %s\n", channel, timestr, msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user