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.
readonly
[Symbol.toStringTag]: "Temporal.Duration"
readonly
blank: boolean
readonly
days: number
readonly
hours: number
readonly
microseconds: number
readonly
milliseconds: number
readonly
minutes: number
readonly
months: number
readonly
nanoseconds: number
readonly
seconds: number
readonly
sign: -1 | 0 | 1
readonly
weeks: number
readonly
years: number
add(other: Temporal.Duration | DurationLike | string, options?: DurationArithmeticOptions): Temporal.Duration
round(roundTo: DurationRoundTo): Temporal.Duration
subtract(other: Temporal.Duration | DurationLike | string, options?: DurationArithmeticOptions): Temporal.Duration
toJSON(): string
toLocaleString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string
toString(options?: ToStringPrecisionOptions): string
total(totalOf: DurationTotalOf): number
valueOf(): never
with(durationLike: DurationLike): Temporal.Duration
compare(one: Temporal.Duration | DurationLike | string, two: Temporal.Duration | DurationLike | string, options?: DurationArithmeticOptions): ComparisonResult
from(item: Temporal.Duration | DurationLike | string): Temporal.Duration