On Tue, 9 Jan 2001 09:57:23 -0500,
bill stennett <[EMAIL PROTECTED]> wrote:
 
>Hi All
>
>Can anyone tell me if there is their a function for converting the time
>string produced by localtime i.e. (day, month, date, HH, MM, SS, year)
into
>the number of seconds since the EPOCH.

You are referring to the ctime(3) value returned by Perl's
localtime() in scalar context? If so, Date::Parse claims to do
what you are looking for. I have not actually used the module,
so "caveat programmer."

For other suggestions, see
   perldoc -f localtime

>I would like to compare the data in a log file with the current value
>returned by the system "time" function.
>
>Many thanks
>
>Bill
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activeperl

Reply via email to