Alternatives to shawn's response (w/o commenting on relative benefits)...

----- Original Message ----- From: "cc" <c...@belfordhk.com>
To: <beginners@perl.org>
Sent: Thursday, April 21, 2011 4:37 AM
Subject: time format conversion

Hi,

I have two strings that shows different times and I
want to find the difference in # of hours.

In PHP, there's strtotime(), but there isn't one
in Perl that I can find.

If loading additional modules is an option, the following can be of use...

Date::Manip
http://search.cpan.org/~sbeck/Date-Manip-6.23/lib/Date/Manip.pod
Date::Calc
http://search.cpan.org/~stbey/Date-Calc-6.3/lib/Date/Calc.pod

see also: The Many Dates and Times of Perl
http://www.perl.com/pub/2003/03/13/datetime.html




--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to