Date: 09/23/00
- Next message: Kent Wang: "[PHP] T-Shirts"
- Previous message: Matt: "[PHP] Header("Location: some.url.com")"
- In reply to: Brian C. Doyle: "[PHP] Interger to Time???"
- Next in thread: The Captain: "Re: [PHP] Interger to Time???"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"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>
- Next message: Kent Wang: "[PHP] T-Shirts"
- Previous message: Matt: "[PHP] Header("Location: some.url.com")"
- In reply to: Brian C. Doyle: "[PHP] Interger to Time???"
- Next in thread: The Captain: "Re: [PHP] Interger to Time???"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

