Definition | #include <time.h> char *asctime(const struct tm *tm_p);
|
Parameters const struct tm *tm_p Structure as in the include file <time.h>:
struct tm
{
int tm_sec; /* seconds (0-59) */
int tm_min; /* minutes (0-59) */
int tm_hour; /* hours (0-23) */
int tm_mday; /* day of the month (1-31) */
int tm_mon; /* month from start of year (0-11) */
int tm_year; /* years since 1900 */
int tm_wday; /* weekday (0-6, Sunday=0) */
int tm_yday; /* day since January 1 (0-365) */
int tm_isdst; /* daylight saving time flag */
};
| ||
Return val. | Pointer to the string generated. | |
The resulting string has a length of 26 (including the null byte) and is | ||
NULL | In the event of an error | |
Notes |
A structure of type The calls | |
Example |
| |
See also | ctime, ctime64, gmtime, gmtime64, localtime, localtime64, mktime, mktime64, time, time64 |