Skip to content

DateCycleField

A date field cycleDate, cycleDateTime and cycleZoned can step and wrap: "year", "month" or "day". Narrower than DateUnit on purpose: "week" is a unit, not a field a date can be set to with Temporal’s with().

import type { DateCycleField } from "@northguild/gmt";
type DateCycleField = "year" | "month" | "day";

types/date-cycle-field.ts