bill stennett 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.
>
> I would like to compare the data in a log file with the current value
>
> returned by the system "time" function.
Yes!
Please, use function timegm in Time::Local
Dokumentation says:
NAME
Time::Local - efficiently compute time from local and GMT time
SYNOPSIS
$time = timelocal($sec,$min,$hours,$mday,$mon,$year);
$time = timegm($sec,$min,$hours,$mday,$mon,$year);
>
> Many thanks
>
> Bill
>
> _______________________________________________
> ActivePerl mailing list
> [EMAIL PROTECTED]
> http://listserv.ActiveState.com/mailman/listinfo/activeperl
--
Mit freundlichen Gruessen / With best regards
Reiner Dassing
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activeperl