in reply to Re: DateTime Daylight savings question
in thread DateTime Daylight savings question
This is more of a system issue at this point and not a Perl problem, but if anyone has any advice I would be appreciative.use DateTime; use DateTime::TimeZone; my $dt = DateTime->now; # same as ( epoch => time() ) print( $dt->hms, "\n" ); $dt->set_time_zone( 'America/New_York' ); print( $dt->hms, "\n" ); $dt->set_time_zone( 'EST' ); print( $dt->hms, "\n" ); #Results (With the DST enabled AND disabled..Doesnt matter). 01:10:49 21:10:49 20:10:49
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: DateTime Daylight savings question
by ikegami (Patriarch) on Sep 20, 2008 at 00:18 UTC | |
|
Re^3: DateTime Daylight savings question
by jsilva_im (Novice) on Sep 20, 2008 at 00:17 UTC |