Depends on the overhead you want. You can use timelocal and a simple
calculation verses the overhead of the other routines to get a delta.
Wags ;)
-----Original Message-----
From: Dittrich G. Michael [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 06, 2002 09:13
To: [EMAIL PROTECTED]
Subject: delta time/date
I try to find a quick and uncomplicated way to calculate the difference between one
and another date/time:
@date1 = ($year1, $month1, $day1, $hour1, $minute1);
@date2 = ($year2, $month2, $day2, $hour2, $minute2);
@deltaDateTime = "difference"(@date1, @date2);
print "@deltaDateTime\n";
0 0 0 12 35
anyone any suggesting for a quick way ...and covering issues like 28Feb 30/31
month-length ...
(perl 5.005_3 on FreeBSD)
thanks in advanced
Michael G. Dittrich
--
berlin.de - meine stadt im netz. Jetzt eigene eMail-adresse @berlin.de sichern!
http://www.berlin.de/home/MeineStadt/Anmeldung
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]