Skip to content

getFormatDuration()

Formats a duration either from milliseconds or between two dates.

Example:

ts
getFormatDuration(ms(2, 'hour') + ms(15, 'min'));

Released under the MIT License.