Syntax | #include <time.h> char *asctime(const struct tm *timeptr); | |
Description | asctime() converts a time specification that is broken down in accordance with the structure This structure can be specified with *timeptr as defined in the header struct tm { int tm_sec; /* Seconds [0,61] */ int tm_min; /* Minutes [0,59] */ int tm_hour; /* Hours [0,23] */ int tm_mday; /* Day of month [1,31] */ int tm_mon; /* Months since beginning of year [0,11]*/ int tm_year; /* Years since 1900 */ int tm_wday; /* Weekday [0,6] Sunday=0 */ int tm_yday; /* Days since January 1 [0,365] */ int tm_isdst; /* Daylight saving time (ignored) */ };
| |
Return val. | Pointer to the generated EBCDIC string | |
if successful. The result string has a length of 26 (including the null byte) and the format of a date and time specification in English: weekday month-name day-of-month hours:minutes:seconds year e.g. | ||
| In case of an error. | |
Notes | The A structure of type The functions | |
See also |
|