--- In "PeterElliot" <> wrote:
>
> Hi All,
>
> A few weeks late, but does anyone know a simple way of updating the
> timezone files for the new DST dates.
>
> I only need the America/Detroit file for my TS-7300 systems...
>
> PJE
>
I found that timezone files didn't work for me (as I am launching programs from
init so
they don't pick up the Timezone variable for some reason.
However, you if you can set the timezone variable TZ, you can control when the
transition
to Summer Time happens.
Here is an extract from the man page for GNU libc - it worked for me!
--
The second format is used when there is Daylight Saving Time:
std offset dst [offset],start[/time],end[/time]
The initial std and offset specify the standard time zone, as described above.
The dst
string and offset specify the name and offset for the corresponding Daylight
Saving Time
zone; if the offset is omitted, it defaults to one hour ahead of standard time.
The remainder of the specification describes when Daylight Saving Time is in
effect. The
start field is when Daylight Saving Time goes into effect and the end field is
when the
change is made back to standard time. The following formats are recognized for
these
fields:
Jn
This specifies the Julian day, with n between 1 and 365. February 29 is never
counted,
even in leap years.
n
This specifies the Julian day, with n between 0 and 365. February 29 is counted
in leap
years.
Mm.w.d
This specifies day d of week w of month m. The day d must be between 0 (Sunday)
and 6.
The week w must be between 1 and 5; week 1 is the first week in which day d
occurs, and
week 5 specifies the last d day in the month. The month m should be between 1
and 12.
The time fields specify when, in the local time currently in effect, the change
to the other
time occurs. If omitted, the default is 02:00:00.
For example, here is how you would specify the Eastern time zone in the United
States,
including the appropriate Daylight Saving Time and its dates of applicability.
The normal
offset from UTC is 5 hours; since this is west of the prime meridian, the sign
is positive.
Summer time begins on the first Sunday in April at 2:00am, and ends on the last
Sunday in
October at 2:00am.
EST+5EDT,M4.1.0/2,M10.5.0/2
-- End quote
so use export TZ=EST+5EDT,M4.1.0/2,M10.5.0/2 in your login script - or wherever
is
appropriate. (I'm not saying these values are correct - please check.
Martin
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|