Factory docs, home
Page navigation

Shared internal Gregorian arithmetic and zone conversion. It owns src/calendar.ts; Owner policy, Lifecycle schedule and planning modules consume it. This source ownership is independent of those adapters and adds no public package entry or model task.

Intelligence: none — Shared neutral Gregorian arithmetic and fixed schedule identities are pure rules over caller data.

dayNumberOf accepts real Gregorian dates from 1970 to 9999; mondayOf accepts real ISO weeks in that range. minutesOf parses HH:MM. formatterOf requires UTC or a canonical IANA zone name of at most 64 characters and uses host ICU data. checkInstant accepts non-negative safe-integer epoch milliseconds. localDayOf and localDateOf convert such instants. zonedInstant resolves a repeated local time to the earlier instant and advances a nonexistent time by the gap, assuming at most one offset change in the surrounding day. Lower-level dateOfDay and instantAt expect validated day/minute values. CalendarError preserves caller-selected INVALID/CORRUPT classification.

No storage, scheduling, clock read, authority or provider effect occurs. Moving registry ownership changes no runtime import edge or task policy digest. Existing consumer limits and stored protocols remain with their owning module.

See the guide, source, Intelligence declaration and current evidence.

Source: docs/agents/calendar.md