MPE/iX Shell and Utilities Reference Manual, Vol 2
timezone(3) MPE/iX Shell and Utilities timezone(3)
• For Mm.n.d the dth day (0 <= d <= 6) of week n of month m of the year (1 <= n
<= 5, 1 <= m <= 12 where week 5 is the last d day in month m, which may occur
in either the fourth or fifth week). In addition, week 1 is the first week in which
the dth day occurs, and day zero is Sunday.
Neither starttime nor endtime are required, and when omitted, their values default to
02:00:00. If this Daylight Savings Time rule is omitted altogether, the values in the rule
default to the standard American Daylight Savings Time rules — starting at 02:00:00 the
first Sunday in April and ending at 02:00:00 the last Sunday in October.
When the
TZ
variable is not set, time conversions behave as if it were set to:
TZ=GMT0
EXAMPLES
Here are some possible settings for the North American Eastern time zone:
TZ=EST5EDT
TZ=EST0EDT
TZ=EST0
In the first case, the reference time is
GMT and thus stored time values are correct world wide.
A simple change of the
TZ
variable prints local time correctly, anywhere. In the second case,
the reference time is Eastern Standard Time and the only conversion performed is for Daylight
Saving Time.
Other examples include:
TZ=NST3:30NDT2:00
TZ=MSEZ–1
The first applies to Newfoundland, while the second works in most of Western Europe.
Here are some time zone scenarios that involve Daylight Savings Time specification:
TZ=PST0PDT-1
TZ=ACST-09:30ACDT-10:30,M10.5.0/2:00,M3.5.0/2:00
The first scenario shows the
TZ
of a person in Seattle who stores local time on a PC, but does
not adjust the clock to agree with Daylight Savings Time. The stated time zone precedes the
machine clock time by one hour when Daylight Savings Time is in effect.
The second scenario shows the
TZ
set by a person in Australia who sets a PC clock to UTC and
never adjusts it. The machine clock precedes UTC by 9.5 hours when Daylight Savings Time
is not in effect, and by 10.5 hours when in effect. Daylight Savings Time will be in effect from
2:00 am on the last Sunday in October until 2:00 am on the last Sunday in March.
3-52 Miscellaneous Information