Convert Seconds into Time String in PHP


/ Published in: PHP
Save to your folder(s)

This function returns the duration of the given time period in days, hours, minutes and seconds. For example: echo convertSecToStr('654321'); would return "7 days, 13 hours, 45 minutes, 21 seconds"

URL: http://www.apphp.com/index.php?snippet=php-convert-seconds-into-time-string

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.