Full ISO 8601 compatible duration class.
npm install --save @datatypes/durationconst duration = new Duration('P1DT10H37M15.345S')
const anHour = new Duration()
.setMinutes(60)
.normalize()The accuracy of a Duration object corresponds to the smallest defined quantity.
P1Hmeans "around 1 hour" long- accuracy: hour
P1H0M0.0Smeans "exactly 60 * 60 * 1000 milliseconds" long- accuracy: millisecond