Skip to content

timeDuration()

Converts milliseconds into hour-based time parts without keeping full days separately.

Example:

ts
timeDuration(ms(1, 'hour') + ms(30, 'min'));

Released under the MIT License.