List:General Discussion« Previous MessageNext Message »
From:Martin Edelius Date:July 5 1999 2:38pm
Subject:SV: Timestamp and total time taken
View as plain text  
>Can I simply use HH,MM from tdin to HH,MM of tdout?  Should I go about
>this a different way?  This is what I have so far for my table.  Would
>this be a perl script.?

In PHP3 I would use an int for tdin and tdout and store a value from the
time() function (the number of seconds since Unix). This value can then
be used with the date() function for almost everything, as well as
getting the difference between timein and timeout; tdtotal=tdout-tdin
(in seconds, multiply as you like to get minutes and hours).

I would be surprised if there wasn't similar functions in PERL.

Best regards,
Martin Edelius

Spirex Digital Design

Mail: martin.edelius@stripped
Phone: +46-31-514651, 0708-113711
Fax: +46-31-514331
S-422 43 Hisings Backa

SV: Timestamp and total time takenMartin Edelius5 Jul