Oh in addition this won't work accurately if $time is greater than about 2
billion(2147483648 I believe).
--
phill

""Phillip Bow"" <[EMAIL PROTECTED]> wrote in message
9961qg$ma4$[EMAIL PROTECTED]">news:9961qg$ma4$[EMAIL PROTECTED]...
> function philtime($time){
>     $hours = (int) ($time / 3600);
>     $min = (int) (($time % 3600) / 60 );
>     return ("$hours:$min");
> }
> Should be 3600 since:
> 60sec = 1min
> 60min = 1hour
> 60 * 60 = 3600sec/hour
> --
> phill


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to