in reply to Converting seconds to DD:HH:MM:SS
but it should be a bit faster.sub seconds_to_dhms { my $t = shift; return int($t / 86400), (gmtime($t))[2, 1, 0]; }
UPDATE: renamed function as per sauoq (I had copied it directly from the question.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Converting seconds to DD:HH:MM:SS
by sauoq (Abbot) on Oct 08, 2005 at 05:55 UTC |