- duration(units: Partial<{
days: number;
hours: number;
milliseconds: number;
minutes: number;
months: number;
seconds: number;
weeks: number;
years: number;
}>): Duration
-
Parameters
-
units: Partial<{
days: number;
hours: number;
milliseconds: number;
minutes: number;
months: number;
seconds: number;
weeks: number;
years: number;
}>
- duration(time: number, unit?: DurationUnitType): Duration
-
- duration(ISO_8601: string): Duration
-