stack

Home > @infiniteobjects/core-library-web > Duration

Duration class

Utilities to generate durations.

Signature:

export declare class Duration 

Remarks

durations come in Milliseconds

Methods

Method Modifiers Description
between(startDate, endDate) static Return the amount of milliseconds passed between startDate and endDate
fromNow(startDate) static Return the amount of Milliseconds passed since startTime
fromNowHr(startTime) static Return the amount of Milliseconds passed since startTime