Re: Date to seconds

2003-09-17 Thread Rob Dixon
size or performance. See below. HTH, Rob use strict; use warnings; use Date::Manip; my $date = ParseDate('20030910 13:50:25.6'); my $seconds = UnixDate($date, '%s'); print $seconds, \n; ** OUTPUT ** 1063230625 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

Date to seconds

2003-09-11 Thread Li, Kit-Wing
Hi, Does anybody know of a quick method in perl to turn a date string into its equivalent in seconds, include milliseconds if possible? Ex: 20030910 13:50:25.6 to 1063202644. Thanks much! -- This message is intended

Re: Date to seconds

2003-09-11 Thread Alexander Blüm
: 01day : 14hours : 04minutes : 04seconds oooh... since 1970 00:00:00 try print time(); if you want to convert any other date to seconds since 1970, you will have to convert the year, month and day seperately to seconds, don't forget, the hours and minutes... -- To unsubscribe, e-mail: [EMAIL