Parses a given duration in milliseconds into an object representing the duration in days, hours, minutes, seconds, and milliseconds.
The duration in milliseconds to be parsed.
An object of type Duration representing the parsed duration.
Duration
Will throw an error if the input duration is negative.
Parses a given duration in milliseconds into an object representing the duration in days, hours, minutes, seconds, and milliseconds.