> -----Original Message-----
> From: Dave Rolsky [mailto:[EMAIL PROTECTED] 
> 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:[EMAIL PROTECTED]
> >> 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

Reply via email to