Rick Measham schreef:
> This makes me think .. should there be a way to 'force' a DST change? 
> For example:
> $dst_on = DateTime->new([1am this morning]);
> 
> $dt = DateTime->new(year=>xxxx, month=>xx, day=>xx, 
> timezone=>'Europe/London', dst_on=>$dst_on, dst_off=>$dst_off);

This would be better handled by writing a new ::TimeZone class:

$tz = DateTime::TimeZone::RollYourOwn->(
        name => 'Europe/London1',
        offset => [ {                 to => $dst_on,  offset => 0 },
                    {from => $dst_on, to => $dst_off, offset => '+0100'},
                    {from => $dst_off,                offset => 0 } ]
        );

..or something like that. 

Eugene

Reply via email to