Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I've used the command $lockfile_epoch = (stat($file))[9]; to get the timestamp of the files in seconds since epoch.
And used the command $current_epoch = time(); to get the current system time.
Used those commands and brought back the right time in seconds when I ran it as a perl script on the cywin installation on my local machine but when I tried to run it in a CGI on a unix box, the time stamps are not close even when I have touch the file ust before executing the CGI. There seems to be an offset of 77000-78000 seconds.
Thanks for any help or info
Edit by tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Unix date/time variance
by pepik_knize (Scribe) on May 22, 2002 at 05:33 UTC |