Re: [PHP] Interger to Time??? From: Andreas Pour (pour <email protected>)
Date: 09/23/00

"Brian C. Doyle" wrote:
>
> Hello all,
>
> I need to convert an interger (28888 (seconds)) into hours minutes and seconds?

Did you try:

  $h = intval($sec / 3600);
  $m = intval($sec / 60) % 60;
  $s = intval($sec % 60);

Ciao,

Andreas Pour

http://www.kde.com/ : Everything KDE
http://apps.kde.com/: The Latest in KDE Applications

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>