Skip to content

calendar/calculate

  • The core functions, which every industry uses.
  • bucketRange: Return the start instant of every unit bucket the half-open range [start, end) touches, bucketed in timeZone.
  • floorToZone: Floor an instant to the start of the unit containing it in timeZone, and return the instant of that boundary.
  • getFiscalPeriod: Return the fiscal year, period and week value falls in, for a 52/53-week retail calendar.
  • getIsoWeekDate: Return the ISO 8601 week date — week-numbering year, week and weekday — for value.
  • getOrdinalDate: Return the ISO 8601 ordinal date — calendar year and day of year — for value.
  • getQuarter: Return the quarter value falls in, as a year and a quarter number.

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.