According to perldoc.
Date_to_Time:
$time = Date_to_Time($year,$month,$day, $hour,$min,$sec);
Here I can go print $time and get the value
Time_to_Date:
($year,$month,$day, $hour,$min,$sec) = Time_to_Date([time]);
How do I see the value converted back to the date as it was?
Hi there,
I've got a date field and a time field, how can I effectively subtract
the
field ($date $time) - ($date2 $time2) from each other. I am using these
two fields to determine a server's uptime according to my database in
days,hours,minutes,seconds. I have read numourous articles and posts on
suggestions and came up with nothing. Could someone please give me some
example code to do this.
I'm sort of stuck!
What have you tried, what didn't work or you didn't understand?
Date::Calc
Date::Manip
DateTime
All make this trivial.
http://danconia.org
--
Kind Regards,
Werner Otto
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>