Li, Kit-Wing wrote:
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!

starting when?
I mean, you 1063202644 seconds, and these are

33years : 37weeks : 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 PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to