> 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.
> Kind Regards,
> Werner Otto
P
:
Subject: Re: Date and time calculation
Date::Calc
Date::Manip
DateTime
All make this trivial.
> 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 dat
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
> 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 articl