# calendar

Industry: Core

## [business](/gmt/reference/calendar/business/)

- [`businessDaysBetween`](/gmt/reference/calendar/business/businessDaysBetween/): Count the working days between two local dates, **excluding `start` and including `end`**.
- [`mergeCalendars`](/gmt/reference/calendar/business/mergeCalendars/): Compose several jurisdictions' calendars into one whose working days are those they all share.
- [`nextBusinessDay`](/gmt/reference/calendar/business/nextBusinessDay/): Return the first working day **strictly after** `value`.
- [`previousBusinessDay`](/gmt/reference/calendar/business/previousBusinessDay/): Return the last working day **strictly before** `value`.
- [`rollDate`](/gmt/reference/calendar/business/rollDate/): Move a local date onto a working day according to `convention`.

## [calculate](/gmt/reference/calendar/calculate/)

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

## [hours](/gmt/reference/calendar/hours/)

- [`addOperatingTime`](/gmt/reference/calendar/hours/addOperatingTime/): Return the instant at which `duration` of open time has elapsed since `start`: the deadline of a service level measured in working hours.
- [`isOpenAt`](/gmt/reference/calendar/hours/isOpenAt/): Return true when `schedule` is open at the instant `isoString`.
- [`nextCloseAt`](/gmt/reference/calendar/hours/nextCloseAt/): Return the first instant at or after `isoString` that `schedule` is closed, as a UTC instant.
- [`nextOpenAt`](/gmt/reference/calendar/hours/nextOpenAt/): Return the first instant at or after `isoString` that `schedule` is open, as a UTC instant.
- [`operatingIntervals`](/gmt/reference/calendar/hours/operatingIntervals/): Return the instants an `OperatingSchedule` is open inside `range`: its weekly windows with holidays closed and overrides applied, resolved in the schedule's zone.
- [`operatingTimeBetween`](/gmt/reference/calendar/hours/operatingTimeBetween/): Return how much open time `schedule` has between two instants, as an exact ISO duration.
- [`recurringWindows`](/gmt/reference/calendar/hours/recurringWindows/): Return the instants a weekly pattern of local windows is open inside `range`, read in `timeZone`: the primitive under operating hours, curfews and recurring crew windows.

## [rules](/gmt/reference/calendar/rules/)

- [`buildBusinessCalendar`](/gmt/reference/calendar/rules/buildBusinessCalendar/): Expand holiday rules into a `BusinessCalendar` for a range of years.
- [`easterSunday`](/gmt/reference/calendar/rules/easterSunday/): Easter Sunday of a year as an ISO date, by the Gregorian computus unless the Julian one is asked for.
- [`holidayDates`](/gmt/reference/calendar/rules/holidayDates/): Every date a holiday rule produces in an ISO year, as sorted ISO PlainDate strings.
- [`nthWeekdayOfMonth`](/gmt/reference/calendar/rules/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`](/gmt/reference/calendar/rules/observedDate/): Where a holiday is observed under a policy.

## [validate](/gmt/reference/calendar/validate/)

- [`isValidBusinessCalendar`](/gmt/reference/calendar/validate/isValidBusinessCalendar/): Return true when `calendar` is a `BusinessCalendar` the business-day functions accept.
- [`isValidFiscalCalendar`](/gmt/reference/calendar/validate/isValidFiscalCalendar/): Return true when `calendar` is a `FiscalCalendar` that `getFiscalPeriod` accepts.
- [`isValidFiscalExtraWeek`](/gmt/reference/calendar/validate/isValidFiscalExtraWeek/): Return true when `value` is a valid FiscalExtraWeek: the period a 53rd week is added to.
- [`isValidFiscalPattern`](/gmt/reference/calendar/validate/isValidFiscalPattern/): Return true when `pattern` is a valid FiscalPattern.
- [`isValidFiscalYearLabel`](/gmt/reference/calendar/validate/isValidFiscalYearLabel/): Return true when `value` is a valid FiscalYearLabel: the rule that picks the calendar year naming a fiscal year.
- [`isValidHolidayRule`](/gmt/reference/calendar/validate/isValidHolidayRule/): Return true when `rule` is a `HolidayRule` that `holidayDates` and `buildBusinessCalendar` accept.
- [`isValidOperatingSchedule`](/gmt/reference/calendar/validate/isValidOperatingSchedule/): Return true when `schedule` is an `OperatingSchedule` the operating-hours functions accept.
- [`isValidRollConvention`](/gmt/reference/calendar/validate/isValidRollConvention/): Return true when `convention` is a `RollConvention` that `rollDate` implements.
- [`isValidZoneBucketUnit`](/gmt/reference/calendar/validate/isValidZoneBucketUnit/): Return true when `unit` is a valid ZoneBucketUnit.
