3 TZ \- Time zone environment variable
5 \fBTZ=\fIzone\fR[\fB\-\fR]\fIoffset\fR[\fIdst\fR[\fIoffset\fR][\fB,\fIstart\fR[\fB/\fItime\fR]\fB,\fIend\fR[\fB/\fItime\fR]]]
13 environment variable tells functions such as the
15 family and programs like
17 what the time zone and daylight saving rule is. The value of
19 has the \s-2POSIX\s+2 standardized form shown in the synopsis. This form
20 specifies the zone names, offsets from GMT, and daylight saving changeover
21 times for at least the current year.
24 A three or more letter name for the time zone in normal (winter) time.
27 A signed time telling the offset of the time zone westwards from Greenwich.
30 with a one or two digit hour, and optional two digit minutes and seconds.
33 The name of the time zone when daylight saving is in effect. It may
34 be followed by an offset telling how big the clock correction is other than
35 the default of 1 hour.
37 \fIstart\fR/\fItime\fR,\fIend\fR/\fItime\fR
38 Specifies the start and end of the daylight saving period. The
42 fields indicate on what day the changeover occurs. They must be in one of
43 the following formats:
48 \fBJ\fIn\fR The Julian day
52 <= 365) ignoring leap days, i.e. there is no February 29.
55 \fIn\fR The zero-based Julian day
58 <= 365). Leap days are not ignored.
75 <= 6, 0=Sunday). The 5-th occurrence means the last occurrence of that day
78 is the first Sunday in April,
80 is the last Sunday in September.
85 field indicates the time the changeover occurs on the given day.
93 Central European Time, 1 hour east from Greenwich, daylight saving starts on
94 the last Sunday in March at 2 AM and ends on the last Sunday in October
98 .B TZ='CET\-1CEST,M3.5.0/2,M10.5.0/3'
101 British time, daylight saving starts and ends at the same moment as CET,
102 but in an earlier time zone:
105 .B TZ='GMT0BST,M3.5.0/1,M10.5.0/2'
108 The eastern european time zones also have the changeovers at the same
109 absolute time as British time and CET.
111 U.S. Eastern Standard Time, 5 hours west from Greenwich, daylight saving
112 starts on the second Sunday in March at 2 AM and ends on the first Sunday in
116 .B TZ='EST5EDT,M3.2.0/2,M11.1.0/2'
119 It shouldn't surprise you that daylight saving in New Zealand is observed
120 in the months opposite from the previous examples. It starts on the first
121 Sunday in October at 2 AM and ends on the third Sunday in March at 3 AM:
124 .B TZ='NZST\-12NZDT,M10.1.0/2,M3.3.0/3'
130 You may have noticed that many fields are optional. Do not omit them,
131 because the defaults are bogus. If you need daylight saving then fully
132 specify the changeovers.
134 West is negative, east is positive, ask any sailor.
136 Next year's time zone and daylight saving time are determined by politicians.
138 Kees J. Bot (kjb@cs.vu.nl)
140 .\" corrected for US/Canada 2007 changes by ASW 2007-02-20