[PHP] Re: convert seconds to hours, minutes, seconds

2003-06-04 Thread Jakob Mund
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



[PHP] Re: Auto refresh

2003-06-03 Thread Jakob Mund
My advice to you is to use javascript..

Kurosh Burris [EMAIL PROTECTED] schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
 Hi Everyone,

 I'm now trying to add an auto refresh in a .php file, so that it
 automatically refreshes the same page every 15 mins.  Is there an upper
 limit to the header() function?  It seemed to work fine when it was set to
 5 seconds, but is not working with 900.

 Here's the code:

 header( 'refresh: 900; url=.' );

 Thanks,
 Kurosh





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php