I'm trying to output a dynamic figure in seconds to: seconds, minutes, hours or days depending on the total.
What would be the best way to quickly format the seconds such as below?
33 seconds = 33 seconds
92 seconds = 1.5 minutes
6200 seconds = 1.7 hours
180000 seconds = 2 days
980010 seconds = 1.6 weeks
I was hoping there was a jQuery library that could handle this?
Any help is much appreciated.