# DifferenceOptions

`import { DifferenceOptions } from "destack:time";`

Options for Temporal difference methods.

```ds title="DifferenceOptions"
export interface DifferenceOptions<T: DateTimeUnit> {
    smallestUnit: SmallestUnit<T>;
    largestUnit: LargestUnit<T>;
    roundingIncrement: float64;
    roundingMode: "ceil" | "floor" | "expand" | "trunc" | "halfCeil" | "halfFloor" | "halfExpand" | "halfTrunc" | "halfEven";
}
```

[language/library/src/time/option.ds:41:53](https://github.com/destack-sh/destack/blob/main/language/library/src/time/option.ds#L41-L53)

## 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.
