At 9:57 am -0500 9/1/01, bill stennett wrote:

>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.
>
>I would like to compare the data in a log file with the current value
>returned by the system "time" function.

Nothing simpler

print time;
print $/;
print time/60/60/24/365.25;
print $/;

JD



_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activeperl

Reply via email to