# RelativeUnit

Industry: Core

Canonical 7-member unit for `Intl.RelativeTimeFormat` and Temporal `since`/`until` totals, excluding `quarter`. Shared by `formatRelativeUnix`, `formatRelativeUtc`, and `formatRelativeZoned` after importing from this barrel.

```ts
import type { RelativeUnit } from "@northguild/gmt";
```

## Definition

```ts
type RelativeUnit =
  | "year"
  | "month"
  | "week"
  | "day"
  | "hour"
  | "minute"
  | "second";
```

## Used by

- [`formatRelativeUnix`](/gmt/reference/unix/format/formatRelativeUnix/)
- [`formatRelativeUtc`](/gmt/reference/utc/format/formatRelativeUtc/)
- [`formatRelativeZoned`](/gmt/reference/zoned/format/formatRelativeZoned/)

## Source

[types/relative-unit.ts](https://github.com/northguild/gmt/blob/main/packages/gmt/src/types/relative-unit.ts)
