DateUnitSchema
katanakit-js / DateUnitSchema
Variable: DateUnitSchema
Section titled “Variable: DateUnitSchema”const DateUnitSchema: ZodEnum<{ days: "days"; hours: "hours"; minutes: "minutes"; months: "months"; quarters: "quarters"; weeks: "weeks"; years: "years";}>;Defined in: schemas/core.schema.ts:147
Granularity of a date calculation, matching Notion’s formula vocabulary.
Quarters are included because a calendar quarter is the unit a business actually reports in, and it is exactly three months — no extra calendar concept needed. Ordered coarsest to finest so a sorted union stays readable.