# @northguild/gmt/calendar > Business days, holidays, fiscal periods and opening hours, worked out from ISO 8601 date and instant strings. Back to the [root llms.txt](https://northguild.dev/gmt/llms.txt). ## business - [businessDaysBetween](https://northguild.dev/gmt/reference/calendar/business/businessDaysBetween.md): Count the working days between two local dates, **excluding `start` and including `end`**. - [mergeCalendars](https://northguild.dev/gmt/reference/calendar/business/mergeCalendars.md): Compose several jurisdictions' calendars into one whose working days are those they all share. - [nextBusinessDay](https://northguild.dev/gmt/reference/calendar/business/nextBusinessDay.md): Return the first working day **strictly after** `value`. - [previousBusinessDay](https://northguild.dev/gmt/reference/calendar/business/previousBusinessDay.md): Return the last working day **strictly before** `value`. - [rollDate](https://northguild.dev/gmt/reference/calendar/business/rollDate.md): Move a local date onto a working day according to `convention`. ## calculate - [bucketRange](https://northguild.dev/gmt/reference/calendar/calculate/bucketRange.md): Return the start instant of every `unit` bucket the half-open range `[start, end)` touches, bucketed **in `timeZone`**. - [floorToZone](https://northguild.dev/gmt/reference/calendar/calculate/floorToZone.md): Floor an instant to the start of the `unit` containing it **in `timeZone`**, and return the instant of that boundary. - [getFiscalPeriod](https://northguild.dev/gmt/reference/calendar/calculate/getFiscalPeriod.md): Return the fiscal year, period and week `value` falls in, for a 52/53-week retail calendar. - [getIsoWeekDate](https://northguild.dev/gmt/reference/calendar/calculate/getIsoWeekDate.md): Return the ISO 8601 week date — week-numbering year, week and weekday — for `value`. - [getOrdinalDate](https://northguild.dev/gmt/reference/calendar/calculate/getOrdinalDate.md): Return the ISO 8601 ordinal date — calendar year and day of year — for `value`. - [getQuarter](https://northguild.dev/gmt/reference/calendar/calculate/getQuarter.md): Return the quarter `value` falls in, as a year and a quarter number. ## hours - [addOperatingTime](https://northguild.dev/gmt/reference/calendar/hours/addOperatingTime.md): Return the instant at which `duration` of open time has elapsed since `start`: the deadline of a service level measured in working hours. - [isOpenAt](https://northguild.dev/gmt/reference/calendar/hours/isOpenAt.md): Return true when `schedule` is open at the instant `isoString`. - [nextCloseAt](https://northguild.dev/gmt/reference/calendar/hours/nextCloseAt.md): Return the first instant at or after `isoString` that `schedule` is closed, as a UTC instant. - [nextOpenAt](https://northguild.dev/gmt/reference/calendar/hours/nextOpenAt.md): Return the first instant at or after `isoString` that `schedule` is open, as a UTC instant. - [operatingIntervals](https://northguild.dev/gmt/reference/calendar/hours/operatingIntervals.md): 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](https://northguild.dev/gmt/reference/calendar/hours/operatingTimeBetween.md): Return how much open time `schedule` has between two instants, as an exact ISO duration. - [recurringWindows](https://northguild.dev/gmt/reference/calendar/hours/recurringWindows.md): 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 - [buildBusinessCalendar](https://northguild.dev/gmt/reference/calendar/rules/buildBusinessCalendar.md): Expand holiday rules into a `BusinessCalendar` for a range of years. - [easterSunday](https://northguild.dev/gmt/reference/calendar/rules/easterSunday.md): Easter Sunday of a year as an ISO date, by the Gregorian computus unless the Julian one is asked for. - [holidayDates](https://northguild.dev/gmt/reference/calendar/rules/holidayDates.md): Every date a holiday rule produces in an ISO year, as sorted ISO PlainDate strings. - [nthWeekdayOfMonth](https://northguild.dev/gmt/reference/calendar/rules/nthWeekdayOfMonth.md): 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](https://northguild.dev/gmt/reference/calendar/rules/observedDate.md): Where a holiday is observed under a policy. The policy is required and has no default: every default would make some other calendar wrong. ## validate - [isValidBusinessCalendar](https://northguild.dev/gmt/reference/calendar/validate/isValidBusinessCalendar.md): Return true when `calendar` is a `BusinessCalendar` the business-day functions accept. - [isValidFiscalCalendar](https://northguild.dev/gmt/reference/calendar/validate/isValidFiscalCalendar.md): Return true when `calendar` is a `FiscalCalendar` that `getFiscalPeriod` accepts. - [isValidFiscalExtraWeek](https://northguild.dev/gmt/reference/calendar/validate/isValidFiscalExtraWeek.md): Return true when `value` is a valid FiscalExtraWeek: the period a 53rd week is added to. - [isValidFiscalPattern](https://northguild.dev/gmt/reference/calendar/validate/isValidFiscalPattern.md): Return true when `pattern` is a valid FiscalPattern. - [isValidFiscalYearLabel](https://northguild.dev/gmt/reference/calendar/validate/isValidFiscalYearLabel.md): Return true when `value` is a valid FiscalYearLabel: the rule that picks the calendar year naming a fiscal year. - [isValidHolidayRule](https://northguild.dev/gmt/reference/calendar/validate/isValidHolidayRule.md): Return true when `rule` is a `HolidayRule` that `holidayDates` and `buildBusinessCalendar` accept. It answers "is this a rule", which `holidayDates` cannot: that returns `[]` both for an invalid rule and for a year with no occurrence. - [isValidOperatingSchedule](https://northguild.dev/gmt/reference/calendar/validate/isValidOperatingSchedule.md): Return true when `schedule` is an `OperatingSchedule` the operating-hours functions accept. - [isValidRollConvention](https://northguild.dev/gmt/reference/calendar/validate/isValidRollConvention.md): Return true when `convention` is a `RollConvention` that `rollDate` implements. - [isValidZoneBucketUnit](https://northguild.dev/gmt/reference/calendar/validate/isValidZoneBucketUnit.md): Return true when `unit` is a valid ZoneBucketUnit.