Zend - The PHP Company




Code Gallery: bigret


Convert Seconds to Friendly String  

Type: code fragment
Added by: bigret
Entered: 08/05/2004
Last modified: 05/12/2003
Rating: - (fewer than 3 votes)
Views: 6417

Here are two simple functions that convert a given amount of seconds into REAL "human-readable" formats (i.e. 320 secs = '05 mins, 20 secs' OR '00:05:20')

These can help in effectively printing database records (or anything for that matter) returned in seconds only.





Search