|
|
| The stupid question is the question not asked | |
| PerlMonks |
Re: time ()by clintp (Curate) |
| on Dec 05, 2001 at 14:49 UTC ( [id://129632]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
So essentially: you're subtracting the start time from the current time, both expressed in seconds. The result is a pile of seconds that then need to be translated to days, hours, minutes and leftover seconds. Right? The DateCalc function in the Date::Manip module would do this. Beware, this is a heavyweight module. It might just be quicker to divide by 86400 (days), take the remainder and divide by 60*60 (hours), take the remainder and divide by 60 (minutes), and what's left is seconds.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||