> -----Original Message-----
> From: awards [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 11, 2003 2:24 PM
> To: [EMAIL PROTECTED]
> Subject: compare date,time
> 
> 
> Hi,
> 
> I have the following
> 
> 12/08/2003, 11:00
> 
> 13/08/2003, 23:00
> Now I would like to compare them and then calculate the how 
> long time was
> elapsed in terms of hours.
> For the example above it will return 36 hours.
> 
> I don't know if there is a module that do that or a function 
> or we just have
> to program it?
> 
> regards,
> Awards
> 
> 
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
try:

 perldoc Time::Local

convert your date/time to epoch then do your math and display with localtime

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to