• Converts milliseconds to an ISO 8601 duration string. The only categories used are days, hours, minutes, and seconds, because months have no fixed size in milliseconds.

    Parameters

    • ms: number

      The duration in ms to convert.

    Returns string