Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Now what I want to do is convert $newtime to something like 6 hours 4 minute and 30 seconds#$restime is called from the database, which is the previos total. ...snip... $current_time = time(); $res_time = $logtime - $current_time; $newtime = $res_time+$stime; ...snip... #I then update the database by inserting new time, next time the numbe +r will grow again etc..
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: time ()
by hakkr (Chaplain) on Dec 05, 2001 at 19:29 UTC | |
by gbarr (Monk) on Dec 05, 2001 at 19:51 UTC | |
|
Re: time ()
by clintp (Curate) on Dec 05, 2001 at 19:49 UTC | |
by Fastolfe (Vicar) on Dec 06, 2001 at 01:09 UTC | |
|
Re: time ()
by blakem (Monsignor) on Dec 06, 2001 at 01:06 UTC |