The TimeObject.
Optional
simple: falseWhether to return a simple string or a more detailed one.
The converted string.
// 2 days, 3 hrs, 4 mins, 5 secs
msToTimeString({ d: 2, h: 3, m: 4, s: 5 })
// MORE_THAN_A_DAY
msToTimeString({ d: 2, h: 3, m: 4, s: 5 }, true)
// 2:03:04
msToTimeString({ d: 0, h: 2, m: 3, s: 4 }, true)
// 3:04
msToTimeString({ d: 0, h: 0, m: 3, s: 4 }, true)
// 0:04
msToTimeString({ d: 0, h: 0, m: 0, s: 4 }, true)
Returns a TimeObject in string format.