tm
(3type)broken-down time
LIBRARY
DESCRIPTION
Describes time, broken down into distinct components.
tm_isdst describes whether daylight saving time is in effect at the time described. The value is positive if daylight saving time is in effect, zero if it is not, and negative if the information is not available.
tm_gmtoff is the difference, in seconds, of the timezone represented by this broken-down time and UTC (this is the additive inverse of timezone(3)).
tm_zone is the equivalent of tzname(3) for the timezone represented by this broken-down time.
VERSIONS
In C90, tm_sec could represent values in the range [0, 61], which could represent a double leap second. UTC doesn't permit double leap seconds, so it was limited to 60 in C99.
timezone(3), as a variable, is an XSI extension: some systems provide the V7-compatible timezone(3) function. The tm_gmtoff field provides an alternative (with the opposite sign) for those systems.
tm_zone points to static storage and may be overridden on subsequent calls to localtime(3) and similar functions (however, this never happens under glibc).