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?

However, what should be possible is to make a new timezone based on a base offset, a dst offset, and a ruleset for changes (possibly expressed as two recurrence-based DateTime::SpanSet objects).


-dave

/*===================================================
VegGuide.Org                        www.BookIRead.com
Your guide to all that's veg.       My book blog
===================================================*/

Reply via email to