Skip to main content

interface Temporal.Duration

Properties #

#years: number
readonly
#months: number
readonly
#weeks: number
readonly
#days: number
readonly
#hours: number
readonly
#minutes: number
readonly
#seconds: number
readonly
#milliseconds: number
readonly
#microseconds: number
readonly
#nanoseconds: number
readonly
#sign: number
readonly
#blank: boolean
readonly
#[[Symbol.toStringTag]]: "Temporal.Duration"
readonly

Methods #

#round(roundTo: PluralizeUnit<"day" | TimeUnit>): Duration
#total(totalOf: PluralizeUnit<"day" | TimeUnit>): number
#total(totalOf: DurationTotalOptions): number
#toLocaleString(
locales?: Intl.LocalesArgument,
options?: Intl.DurationFormatOptions,
): string
#toJSON(): string
#valueOf(): never

Did you find what you needed?

Privacy policy