menu

DifferenceOptions

import { DifferenceOptions } from "destack:time";

Options for Temporal difference methods.

language/library/src/time/option.ds:41:53
1export interface DifferenceOptions<T: DateTimeUnit> {2    smallestUnit: SmallestUnit<T>;3    largestUnit: LargestUnit<T>;4    roundingIncrement: float64;5    roundingMode: "ceil" | "floor" | "expand" | "trunc" | "halfCeil" | "halfFloor" | "halfExpand" | "halfTrunc" | "halfEven";6}

Members

smallestUnit: SmallestUnit<T>

Smallest unit to include.

largestUnit: LargestUnit<T>

Largest unit to include.

roundingIncrement: float64

Rounding increment for the smallest unit.

roundingMode: "ceil" | "floor" | "expand" | "trunc" | "halfCeil" | "halfFloor" | "halfExpand" | "halfTrunc" | "halfEven"

Rounding mode.