tm
Go Up to time.h Index
Header File
time.h
Syntax
struct tm { int tm_sec; /* Seconds */ int tm_min; /* Minutes */ int tm_hour; /* Hour (0--23) */ int tm_mday; /* Day of month (1--31) */ int tm_mon; /* Month (0--11) */ int tm_year; /* Year (calendar year minus 1900) */ int tm_wday; /* Weekday (0--6; Sunday = 0) */ int tm_yday; /* Day of year (0--365) */ int tm_isdst; /* 0 if daylight savings time is not in effect) */ };
Description
A structure defining the time, broken down into increments.
tm is used by the functions asctime, gmtime, localtime, mktime, and strftime.
Example