blob: 027f5d5a766d6885637264f69eb650ef4cfb399f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include <time.h>
#include <sys/time.h>
char * ctime (const time_t *t)
{
/* According to IEEE Std 1003.1-2001: The ctime() function shall
* convert the time pointed to by clock, representing time in
* seconds since the Epoch, to local time in the form of a string.
* It shall be equivalent to: asctime(localtime(clock)) */
return asctime (localtime (t));
}
|