To convert *to* seconds since the epoch you want the timelocal() function.
It's part of the Time::Local standard module and takes input in the form of
localtime's output. From 'perldoc Time::Local'
use Time::Local;
$time = timelocal($sec,$min,$hours,$mday,$mon,$year);
so a completely worthless example would be
$epoch_time = timelocal(localtime());
In your case you just need to parse the string up to get a the individual
pieces.
Hope this helps,
Peter C.
-----Original Message-----
From: Roy Peters [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 16, 2002 9:45 AM
To: [EMAIL PROTECTED]
Subject: time function
I need someone to tell me the function that will convert time in this
format to epoch time: 1/17/2002 11:15 AM
--
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]