in reply to Determining time since
I have a few of comments:
As to a better way than your method, you might want to use integer division and modulo arithmetic:
$days = int($time/86400); $time %= 86400; # leave only the part that's less than a d +ay $hours = int($time/3600); $time %= 3600; # leave only the part that's less than an +hour; ... # and so on
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Determining time since
by l2kashe (Deacon) on Jan 12, 2004 at 15:45 UTC | |
by sulfericacid (Deacon) on Jan 12, 2004 at 16:22 UTC |