1 .\" Copyright (c) 2022 by Alejandro Colomar <colomar.6.4.3@gmail.com>
3 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
6 .TH TM 3type 2022-06-15 Linux "Linux Programmer's Manual"
17 .BR " int tm_sec;" " /* Seconds [" 0 ", " 60 "] */"
18 .BR " int tm_min;" " /* Minutes [" 0 ", " 59 "] */"
19 .BR " int tm_hour;" " /* Hour [" 0 ", " 23 "] */"
20 .BR " int tm_mday;" " /* Day of the month [" 1 ", " 31 "] */"
22 " /* Month [" 0 ", " 11 "] (January = " 0 ") */"
23 .BR " int tm_year;" " /* Year minus " 1900 " */"
25 " /* Day of the week [" 0 ", " 6 "] (Sunday = " 0 ") */"
27 " /* Day of the year [" 0 ", " 365 "] (Jan/01 = " 0 ") */"
28 .BR " int tm_isdst;" " /* Daylight savings flag */"
30 .BR " long tm_gmtoff;" " /* Seconds East of UTC */"
31 .BR " const char *tm_zone;" " /* Timezone abbreviation */"
36 Feature Test Macro Requirements for glibc (see
37 .BR feature_test_macros (7)):
43 .\" Guarded with __USE_MISC:
46 Glibc 2.20 and earlier:
50 Describes time, broken down into distinct components.
53 describes whether daylight saving time is in effect at the time described.
54 The value is positive if daylight saving time is in effect,
56 and negative if the information is not available.
59 is the difference, in seconds,
60 of the timezone represented by this broken-down time and UTC
61 (this is the additive inverse of
67 for the timezone represented by this broken-down time.
71 could represent values in the range
73 which could represent a double leap second.
74 UTC doesn't permit double leap seconds,
80 POSIX.1-2001 and later.
85 originate from 4.3BSD-Tahoe (where
91 can represent a leap second with the value
95 as a variable, is an XSI extension: some systems provide the V7-compatible
101 field provides an alternative (with the opposite sign) for those systems.
104 points to static storage and may be overridden on subsequent calls to
106 and similar functions (however, this never happens under glibc).