Menu

#1 timezero calculation does not work on all platforms

open
nobody
None
5
2004-06-07
2004-06-07
Anonymous
No

The $timezero is calculated by making a system call to
get the results of a command line call to the date
function. This call requires the use of the format
string %s to get the results as a UNIX timestamp. This
works on Linux, but not all other platforms (HP-UX
10.20 in my case). Instead of relying on certain
command line tools to be installed on the client
machine, perhaps use the perl function
timelocal($sec,$min,$hour,$mday,$mon,$year) (use
Time::Local) to calculate the timezero variable. I've
tested this and it works well.

dbrown@bayousteel.com

Discussion


Log in to post a comment.