Front page | perl.datetime |
Postings from January 2006
RE: Daylight Saving
Thread Previous
|
Thread Next
From:
Garrett, Philip
Date:
January 20, 2006 08:10
Subject:
RE: Daylight Saving
Message ID:
D9C13100F14E4C4795A1E83B125B40351B4734@MSCEXCHS02.man.co
> -----Original Message-----
> From: Dave Rolsky [mailto:autarch@urth.org]
> Sent: Friday, January 20, 2006 11:04 AM
> To: datetime
> Subject: RE: Daylight Saving
>
> On Fri, 20 Jan 2006, Garrett, Philip (MAN-Corporate) wrote:
>
> >> -----Original Message-----
> >> From: Bill Moseley [mailto:moseley@hank.org]
> >> Sent: Friday, January 20, 2006 10:26 AM
> >> To: datetime@perl.org
> >> Subject: Daylight Saving
> >>
> >> I have a zipcode table that lists the city, state, timezone offset
> >> (eg
> >> -5) and a flag indicating if the location uses daylight saving time
> >> for U.S. zipcodes. I don't have the Olson name in the table.
> >>
> >> How do I set the timezone in this case -- taking into account the
dst
> >> settings?
> >
> > It looks like DateTime::TimeZone doesn't support offsets with DST.
>
> Well, how does it know when the DST switch happens except through some
> sort of defined set of rules?
I wouldn't expect it to. The Glibc tzset(3) manpage explains how one can
specify an offset+dst+rules in the TZ env variable. Perhaps that
functionality could be added to DateTime::TimeZone at some point?
Philip
Thread Previous
|
Thread Next