import { Temporal } from "https://deno.land/x/deno@v2.0.4/cli/tsc/dts/lib.deno.unstable.d.ts";
const { Duration } = Temporal;
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.
Methods
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
Static Methods
compare(): ComparisonResult
one: Temporal.Duration | DurationLike | string,
two: Temporal.Duration | DurationLike | string,
options?: DurationArithmeticOptions,
from(item: Temporal.Duration | DurationLike | string): Temporal.Duration