John Bruin wrote:
I have a script that calculates difference between dates and it works well.
However if the 2 dates straddle our daylight saving times (March, October)
then the result is either plus or minus an hour compared to the expected
result.

I am using date::parse (which uses Time::Local) to convert the date string
to seconds and then localtime and strftime to convert back to a string.

Is there a better way of doing this?

You may want to check out Date::Calc.

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to