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
In reply to Unix date/time variance by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |