[LA.pm] OT: changing the date timezone for perl use

Geoffrey Young geoff at modperlcookbook.org
Thu Jun 23 10:50:54 PDT 2005



Peter Scott wrote:
> At 09:05 AM 6/23/2005, David Heayn wrote:
> 
>>I have an ultra simple perl script that requests the current
>>date/time from a shared server (not mine) then spits out the html
>>dressing.
>>
>>My problem is the server is set to Pacific time and I need Eastern time.
>>
>>Anyone have any suggestions/alternative server time mechanisms. I'd
>>rather not go in and program a complete time zone remapping function.
> 
> 
> Um, since eastern time is always 3 hours ahead of pacific

that's not entirely true - daylight savings starts/ends at 2am local time on
the days that it switches, so 1:59am EST magically becomes 3am EDT while it
went from 10:59pm to 11:00pm PST, thus leaving a 4 hour difference for the
next 3 hours.

madness :)

--Geoff




More information about the Losangeles-pm mailing list