Yeah, use the Date::Calc module or maybe Date::Manip.

John

-----Original Message-----
From: Dittrich G. Michael [mailto:[EMAIL PROTECTED]]
Sent: 06 March 2002 17: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]


--------------------------Confidentiality--------------------------.
This E-mail is confidential.  It should not be read, copied, disclosed or
used by any person other than the intended recipient.  Unauthorised use,
disclosure or copying by whatever medium is strictly prohibited and may be
unlawful.  If you have received this E-mail in error please contact the
sender immediately and delete the E-mail from your system.



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

Reply via email to