A span of time.
To create a Duration, pass values to the constructor.
Duration
const duration1 = new Duration({days: 3, hours: 2, minutes: 10}); const duration2 = new Duration({seconds: 43, milliseconds: 548}); const duration3 = new Duration({days: 100, seconds: 53});
Returns duration as milliseconds.
Generated using TypeDoc
A span of time.
To create a
Duration
, pass values to the constructor.const duration1 = new Duration({days: 3, hours: 2, minutes: 10}); const duration2 = new Duration({seconds: 43, milliseconds: 548}); const duration3 = new Duration({days: 100, seconds: 53});