Structure that describes calendar time
Synopsis:
#include <time.h>
struct tm {
int tm_sec;
int tm_min;
int tm_hour;
int tm_mday;
int tm_mon;
int tm_year;
int tm_wday;
int tm_yday;
int tm_isdst;
long int tm_gmtoff;
const char * tm_zone;
};
Description:
The tm structure describes the calendar time.
The members of this structure include:
- tm_sec
- Seconds after the minute, in the range [0,61], allowing for leap seconds.
- tm_min
- Minutes after the hour, in the range [0,59].
- tm_hour
- Hours after midnight, in the range [0,23].
- tm_mday
- Day of the month, in the range [1,31].
- tm_mon
- Months since January, in the range [0,11].
- tm_year
- Years since 1900.
- tm_wday
- Days since Sunday, in the range [0,6].
- tm_yday
- Days since January 1, in the range [0,365], allowing for leap years.
- tm_isdst
- Daylight saving time flag.
This field is positive if daylight saving time is in effect, 0 if daylight saving time isn't in effect,
and negative if the information isn't available.
- tm_gmtoff
- (QNX Neutrino extension) The offset from UTC; see
setlocale().
- tm_zone
- (QNX Neutrino extension) A pointer to the time zone's name.
Note:
This pointer could become stale or invalid after the next call to
tzset().