• Parses a given duration in milliseconds into an object representing the duration in days, hours, minutes, seconds, and milliseconds.

    Parameters

    • milliseconds: number

      The duration in milliseconds to be parsed.

    Returns Duration

    An object of type Duration representing the parsed duration.

    Will throw an error if the input duration is negative.