Home > @infiniteobjects/core-library > Duration
Utilities to generate durations.
Signature:
export declare class Duration
durations
come in Milliseconds
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 |