Hi!

I need to make a script where I must substract one date from another and get
that difference in seconds.

How can I do that?
Is there any module for doing it?

For example if I have:

$date1 = '2003-03-21 12:01:00';
$date2 = '2003-03-21 12:00:00';

I need to do ($date1 - $date2) and have 60 as the result (in seconds)
That's the date format I'm using for the dates, but if there's some module
that helps me to do this substraction, and uses another format I can change
it.

Thanks in advance,

Juan


_______________________________________________
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to