mirror of
https://github.com/diegocr/libnix.git
synced 2026-09-13 20:20:36 +00:00
12 lines
205 B
C
12 lines
205 B
C
#include <time.h>
|
|
|
|
static char buffer[26];
|
|
|
|
char *asctime(const struct tm *t)
|
|
{ strftime(buffer,sizeof(buffer),"%C\n",t);
|
|
return buffer;
|
|
}
|
|
|
|
char *ctime(const time_t *t)
|
|
{ return asctime(localtime(t)); }
|