1 .\" $NetBSD: tzfile.5,v 1.13 2009/03/09 19:24:27 joerg Exp $
4 .\" This file is in the public domain, so clarified as of
5 .\" 1996-06-05 by Arthur David Olson (arthur_david_olson@nih.gov).
11 .Nd time zone information
15 The time zone information files used by
17 begin with the magic characters
19 to identify them as time zone information files,
20 followed by a character identifying the version of the file's format
21 (as of 2005, either an ASCII NUL or a '2')
22 followed by fifteen bytes containing zeroes reserved for future use,
23 followed by six four-byte values of type
27 byte order (the high-order byte of the value is written first).
28 These values are, in order:
29 .Bl -tag -width XXXXXX -compact
31 The number of UTC/local indicators stored in the file.
33 The number of standard/wall indicators stored in the file.
35 The number of leap seconds for which data is stored in the file.
39 for which data is stored in the file.
43 for which data is stored in the file (must not be zero).
45 The number of characters of "time zone abbreviation strings"
49 The above header is followed by
51 four-byte values of type
53 sorted in ascending order.
54 These values are written in
57 Each is used as a transition time (as returned by
59 at which the rules for computing local time change.
62 one-byte values of type
64 each one tells which of the different types of
66 types described in the file is associated with the same-indexed
68 These values serve as indices into an array of
73 entries) that appears next in the file;
74 these structures are defined as follows:
79 unsigned int tt_abbrind;
82 Each structure is written as a four-byte value for
86 in a standard byte order, followed by a one-byte value for
88 and a one-byte value for
92 gives the number of seconds to be added to UTC,
100 serves as an index into the array of time zone abbreviation characters
103 structure(s) in the file.
107 pairs of four-byte values, written in standard byte order;
108 the first value of each pair gives the time
111 at which a leap second occurs;
114 number of leap seconds to be applied after the given time.
115 The pairs of values are sorted in ascending order by time.
119 standard/wall indicators, each stored as a one-byte value;
120 they tell whether the transition times associated with local time types
121 were specified as standard time or wall clock time,
122 and are used when a time zone file is used in handling POSIX-style
123 time zone environment variables.
127 UTC/local indicators, each stored as a one-byte value;
128 they tell whether the transition times associated with local time types
129 were specified as UTC or local time,
130 and are used when a time zone file is used in handling POSIX-style
131 time zone environment variables.
134 uses the first standard-time
136 structure in the file
139 structure in the absence of a standard-time structure)
142 is zero or the time argument is less than the first transition time recorded
145 For version-2-format time zone files,
146 the above header and data is followed by a second header and data,
147 identical in format except that
148 eight bytes are used for each transition time or leap second time.
149 After the second header and data comes a newline-enclosed,
150 POSIX-TZ-environment-variable-style string for use in handling instants
151 after the last transition time stored in the file
152 (with nothing between the newlines if there is no POSIX representation for
159 .\" This file is in the public domain, so clarified as of
160 .\" 1996-06-05 by Arthur David Olson.