Re: Interger to Time???
| From: | Andreas Pour | Date: | Sat, 23 Sep 2000 23:00:43 +0000 |
| Subject: | Re: Interger to Time??? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-17319@lists.php.net to get a copy of this message | ||
"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