Snippet: Converting Seconds to Readable Time (PHP & JS)

Sometimes, you might need to convert an integer representing seconds into a format that is easier to read. These functions can be used to turn a number of seconds into a simple format of HH:MM:SS, with leading zeros (ex. 15272 = 04:14:32). This can be used for countdown scripts, which is why I also include both a PHP and a JavaScript version.

 
Visit Site:
Snippet: Converting Seconds to Readable Time (PHP & JS)
Filed in:
PHP / Tutorials & Tips / Date & Time
Date Added:
Jul 14, 2009 
Last Updated:
Jul 15, 2009 

License and Pricing Information

PHP

Price: $0.00 USD

Publisher site visits: 77
Average rating: 0.00
Total ratings: 0

Be the first to review this listing!

Publisher Info

Author:
UltraMega Tech. 
Other listings by this publisher

Share this Listing