It's just some mathematics: assume $time is the value in seconds:
$secs = $time % 60; $totalMinutes = ( $time - $secs ) / 60; $minutes = $totalMinutes % 60; $hours = ( $totalMinutes - $minutes ) / 60; Now you can do like this: echo "$time secondes is $hours hours, $minutes minutes and $seconds seconds"; "Chinmoy Barua" <[EMAIL PROTECTED]> schreef in bericht 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