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";Definition
Section titled “Definition”type DateDurationUnit = keyof Pick< Temporal.DurationLikeObject, "years" | "months" | "weeks" | "days">;Used by
Section titled “Used by”addDatediffDatediffDateAsDurationgetDateAgogetDateIngetLargestDateDurationUnitisValidDateDurationUnitsubtractDate
Source
Section titled “Source”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.