3 tzset \- initialize time conversion information
12 uses the value of the environment variable
14 to set time conversion information used by
18 does not appear in the environment,
19 the best available approximation to local wall clock time, as specified
24 in the system time conversion information directory, is used by
28 appears in the environment but its value is a null string,
29 Coordinated Universal Time (UTC) is used (without leap second
32 appears in the environment and its value is not a null string:
34 if the value begins with a colon, it is used as a pathname of a file
35 from which to read the time conversion information;
37 if the value does not begin with a colon, it is first used as the
38 pathname of a file from which to read the time conversion information,
39 and, if that file cannot be read, is used directly as a specification of
40 the time conversion information.
44 is used as a pathname, if it begins with a slash,
45 it is used as an absolute pathname; otherwise,
46 it is used as a pathname relative to a system time conversion information
48 The file must be in the format specified in
53 is used directly as a specification of the time conversion information,
54 it must have the following syntax (spaces inserted for clarity):
56 \fIstd\|offset\fR[\fIdst\fR[\fIoffset\fR][\fB,\fIrule\fR]]
62 Three or more bytes that are the designation for the standard
70 is missing, then summer time does not apply in this locale.
71 Upper- and lowercase letters are explicitly allowed. Any characters
72 except a leading colon
80 and ASCII NUL are allowed.
83 Indicates the value one must add to the local time to arrive at
84 Coordinated Universal Time. The
89 \fIhh\fR[\fB:\fImm\fR[\fB:\fIss\fR]]
96 are optional. The hour
98 is required and may be a single digit. The
106 summer time is assumed to be one hour ahead of standard time. One or
107 more digits may be used; the value is always interpreted as a decimal
108 number. The hour must be between zero and 24, and the minutes (and
109 seconds) \(em if present \(em between zero and 59. If preceded by a
111 the time zone shall be east of the Prime Meridian; otherwise it shall be
112 west (which may be indicated by an optional preceding
116 Indicates when to change to and back from summer time. The
121 \fIdate\fB/\fItime\fB,\fIdate\fB/\fItime\fR
126 describes when the change from standard to summer time occurs and the
129 describes when the change back happens. Each
131 field describes when, in current local time, the change to the other
136 is one of the following:
142 .RI "(1\ \(<=" "\ n\ " "\(<=\ 365).
143 Leap days are not counted; that is, in all years \(em including leap
144 years \(em February 28 is day 59 and March 1 is day 60. It is
145 impossible to explicitly refer to the occasional February 29.
148 The zero-based Julian day
149 .RI "(0\ \(<=" "\ n\ " "\(<=\ 365).
150 Leap days are counted, and it is possible to refer to February 29.
156 .RI "(0\ \(<=" "\ d\ " "\(<=\ 6)
162 .RI "(1\ \(<=" "\ n\ " "\(<=\ 5,
163 .RI "1\ \(<=" "\ m\ " "\(<=\ 12,
164 where week 5 means ``the last
168 which may occur in either the fourth or the fifth week). Week 1 is the
169 first week in which the
171 day occurs. Day zero is Sunday.
176 has the same format as
178 except that no leading sign
182 is allowed. The default, if
194 .IR tzfile (5)-format
197 in the system time conversion information directory are used, with the
198 standard and summer time offsets from UTC replaced by those specified by
204 For compatibility with System V Release 3.1, a semicolon
206 may be used to separate the
208 from the rest of the specification.
212 environment variable does not specify a
213 .IR tzfile (5)-format
214 and cannot be interpreted as a direct specification,
217 .ta \w'/usr/share/zoneinfo/posixrules\0\0'u
218 /usr/share/zoneinfo time zone information directory
220 /usr/share/zoneinfo/localtime local time zone file
222 /usr/share/zoneinfo/posixrules used with POSIX-style TZ's
224 /usr/share/zoneinfo/GMT for UTC leap seconds
227 .B /usr/share/zoneinfo/GMT
229 UTC leap seconds are loaded from
230 .BR /usr/share/zoneinfo/posixrules .
237 .\" @(#)newtzset.3 7.5