asctime() - transform binary date and time value to ASCII
#include <sys/types.h>
#include <time.h>
char * asctime (const struct tm *tm)
The asctime(3) function converts a timer structure tm pointed at by *tm to the form
Thu Nov 24 18:22:48 1986\n\0
External declarations as well as the tm structure definition are in the <time.h> include file. The tm structure includes at least the following fields:
int | tm_sec; | seconds (0 - 60) |
int | tm_min; | minutes (0 - 59) |
int | tm_hour; | hours (0 - 23) |
int | tm_mday; | day of month (1 - 31) |
int | tm_mon; | month of year (0 - 11) |
int | tm_year; | year - 1900 |
int | tm_wday; | day of week (Sunday = 0) |
int | tm_yday; | day of year (0 - 365) |
int | tm_isdst; | is summer time in effect? |
date(1)
ctime(3)
getenv(3)
gmtime(3)
localtime(3)
time(2)
tzset(3)