Let's say I have time intervals in seconds. I am looking for a method that produces the following conversions:
3660
=> 1 hour 1 minute 0 seconds
1810
=> 30 minutes 10 seconds
(not 0 hours 30 minutes 10 seconds
)
I should be able to specify the set of units(e.g. adding days or milliseconds, not just HMS).