Skip to content

calendar/rules

  • The core functions, which every industry uses.
  • buildBusinessCalendar: Expand holiday rules into a BusinessCalendar for a range of years.
  • easterSunday: Easter Sunday of a year as an ISO date, by the Gregorian computus unless the Julian one is asked for.
  • holidayDates: Every date a holiday rule produces in an ISO year, as sorted ISO PlainDate strings.
  • nthWeekdayOfMonth: The n-th weekday of a month, counted from the start (1 to 5) or from the end (-1 to -5; "last" is -1), as RFC 5545 §3.3.10 counts a BYDAY ordinal in a monthly rule.
  • observedDate: Where a holiday is observed under a policy.

Last updated:

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.