in reply to Re: Re: Daylight Savings Time twist
in thread Daylight Savings Time twist
This will give you the equivlent time in LA for the time in Indiana. Please note that you should set the timezones to appropriate values :)use DateTime; %OurLogs = get_the_time_from_the_log_file_as_a_hash(); $here = DateTime->new( time_zone => 'America/Indiana', map { $_ => $OurLogs{$_} } qw( year month day hour minute second ) ); $there = $here->clone; $there->set_time_zone('America/Los_Angeles');
Many appologies for all the confusion. I woke up at about 3am in a cold sweat realising that I'd posted the wrong solution :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Daylight Savings Time twist
by kanwisch (Sexton) on Feb 17, 2003 at 17:24 UTC |