Re: Script to convert # of seconds to HH:mm
| From: | Phillip Bow | Date: | Mon, 19 Mar 2001 23:05:35 +0000 |
| Subject: | Re: Script to convert # of seconds to HH:mm | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-44646@lists.php.net to get a copy of this message | ||
I thought about that when I first started, but then went looking to see if
using "\" would return the value without the decimal part. Not good when
you start confusing VB and PHP and it makes you mess up your code.
--
phill
> This way you don't risk rounding up on your first cast to int and being
off
> by an hour... rounding is ok, however, for minutes since that is your most
> granular interval.
>
> -jm