On Fri, Jan 20, 2006 at 10:03:44AM -0600, Dave Rolsky wrote:
> 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).
I need to know if DST is in effect, right?
Maybe I'm way off, but could I set the timezone to some place where I
know DST exists, then check $dt->is_dst and use that?
Something like (assuming US time zones):
$dt->set_time_zone( 'America/Los_Angeles' );
my $offset = $zipcode->offset;
$offset-- if $zipcode->observes_dst;
Then reset the timezone based on the offset?
That's ugly.
DST doesn't have to happen everywhere at the same time, I suppose.
--
Bill Moseley
[EMAIL PROTECTED]