CTIME(3) BSD Programmer's Manual CTIME(3) asctime, asctime_r,
ctime, ctime_r, difftime, gmtime, gmtime_r, localtime,
localtime_r, mktime, timegm, timelocal - convert date and time
to ASCII #include <sys/types.h> #include <time.h> extern char
*tzname; void tzset(void); char * ctime(const time_t *clock);
char * ctime_r(const time_t *clock, char *buf); double
difftime(time_t time1, time_t time0); char * asctime(const
struct tm *tm); char * asctime_r(const struct tm *tm, char
*buf); struct tm * localtime(const time_t *clock); struct tm *
localtime_r(const time_t *clock, struct tm *result); struct tm *
gmtime(const time_t *clock); struct tm * gmtime_r(const time_t
*clock, struct tm *result); time_t mktime(struct tm *tm); time_t
timegm(struct tm *tm); time_t timelocal(struct tm *tm); The
ctime() function converts a time_t, pointed to by clock,
representing the time in seconds since 00:00:00 UTC, 1970-01-01,
and returns a pointer to a string of the form Thu Nov 24
18:22:48 1986\n Years requiring fewer than four char