# DateTimeUnit

Industry: Core

A date or time unit in the singular, from `"year"` down to `"nanosecond"`, as Temporal's rounding and difference options name units.

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

## Definition

```ts
type DateTimeUnit = Temporal.TimeUnit | Temporal.DateUnit;
```

## Used by

- [`areZonedEqualBy`](/gmt/reference/zoned/compare/areZonedEqualBy/)
- [`endOfZoned`](/gmt/reference/zoned/calculate/endOfZoned/)
- [`isValidDateTimeUnit`](/gmt/reference/plain/validate/isValidDateTimeUnit/)
- [`roundDateTime`](/gmt/reference/plain/calculate/roundDateTime/)
- [`startOfZoned`](/gmt/reference/zoned/calculate/startOfZoned/)

## Source

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