Skip to content

DateDurationUnit

  • The core functions, which every industry uses.

A date field of an ISO 8601 duration, in the plural: "years", "months", "weeks" or "days". It names the unit an amount of dates is given in or a date difference is measured in.

import type { DateDurationUnit } from "@northguild/gmt";
type DateDurationUnit = keyof Pick<
Temporal.DurationLikeObject,
"years" | "months" | "weeks" | "days"
>;

types/date-duration-unit.ts

Accessibility
© 2026 NorthGuild · Licences

Code examples: MIT-0. Packages: MIT. Third-party data and components: their own licences, credited where they appear. Everything else: © 2026 NorthGuild, all rights reserved.