class Temporal.Duration
unstable
A Temporal.Duration represents an immutable duration of time which can be
used in date/time arithmetic.
See https://tc39.es/proposal-temporal/docs/duration.html for more details.
Constructors Jump to heading
new
Jump to headingDuration(years?: number,months?: number,weeks?: number,days?: number,hours?: number,minutes?: number,seconds?: number,milliseconds?: number,microseconds?: number,nanoseconds?: number,)Properties Jump to heading
readonly
Jump to heading[Symbol.toStringTag]: "Temporal.Duration"readonly
Jump to headingblank: booleanreadonly
Jump to headingdays: numberreadonly
Jump to headinghours: numberreadonly
Jump to headingmicroseconds: numberreadonly
Jump to headingmilliseconds: numberreadonly
Jump to headingminutes: numberreadonly
Jump to headingmonths: numberreadonly
Jump to headingnanoseconds: numberreadonly
Jump to headingseconds: numberreadonly
Jump to headingsign: -1
| 0
| 1readonly
Jump to headingweeks: numberreadonly
Jump to headingyears: numberMethods Jump to heading
Jump to headingadd(other: ,options?: DurationArithmeticOptions,): Temporal.DurationJump to headinground(roundTo: DurationRoundTo): Temporal.DurationJump to headingsubtract(other: ,options?: DurationArithmeticOptions,): Temporal.DurationJump to headingtoJSON(): stringJump to headingtoLocaleString(locales?: string | string[],options?: Intl.DateTimeFormatOptions,): stringJump to headingtoString(options?: ToStringPrecisionOptions): stringJump to headingtotal(totalOf: DurationTotalOf): numberJump to headingvalueOf(): neverJump to headingwith(durationLike: DurationLike): Temporal.DurationStatic Methods Jump to heading
Jump to headingcompare(): ComparisonResultJump to headingfrom(item: ): Temporal.Duration