9 lines
124 B
C
9 lines
124 B
C
|
#include <time.h>
|
||
|
|
||
|
char *ctime(const time_t *t)
|
||
|
{
|
||
|
struct tm *tm = localtime(t);
|
||
|
if (!tm) return 0;
|
||
|
return asctime(tm);
|
||
|
}
|