use the standard mathematics:
like 178607 / 60 / 60 = Hours ( u have to round down to the nearest
integer )
then u substract the number of hours*3600 from the 178607 seconds.
then you have to divide the number you get by 60 and you got the minutes (
remember to round down to the nearest integer ).
then u substract the number of ( hours*3600 + minutes*60 ) from 178607 and
you got the seconds..
:-)
Jakob 'iNstinct' Mund :)
Chinmoy Barua [EMAIL PROTECTED] schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
Hello everybody,
I have a value 178607, which is stored as seconds. I
like to convert it (178607 Secs) to Hours, Minutes and
Seconds appropiatly.
Can anybody help me supplying the code?
Thank You,
- Chinmoy
__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php