Skip to content

DateDurationUnit

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.DurationLike,
"years" | "months" | "weeks" | "days"
>;

types/date-duration-unit.ts