php-windows Digest 17 Aug 2003 20:49:44 -0000 Issue 1875
Topics (messages 21178 through 21179):
Thanks
21178 by: QuazarWebDesign.aol.com
Re: [PHP] Time formatting from int (seconds)
21179 by: Denny 'DeKa' Bartelt
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Thank you very much!
__________________
Quazar Web Design
If you've got the time, we've got the design!
--- End Message ---
--- Begin Message ---
> In my case I have the result of a subtraction of two
> date in which seconds are returned as in 980 seconds,
> 576 seconds etc. To make this readable to the user of
> the web page and so they do not need to mentally
> calculate the HHMMSS.
function duration($amount)
{
$offset = 255600;
return date("%H:%M:%S",$amount+$offset);
}
echo duration(980);
--- End Message ---