Skip to content
businessDaysBetween: Count the working days between two local dates, excluding start and including end.
mergeCalendars: Compose several jurisdictions’ calendars into one whose working days are those they all share.
nextBusinessDay: Return the first working day strictly after value.
previousBusinessDay: Return the last working day strictly before value.
rollDate: Move a local date onto a working day according to convention.
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.
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: Return true when schedule is open at the instant isoString.
nextCloseAt: Return the first instant at or after isoString that schedule is closed, as a UTC instant.
nextOpenAt: Return the first instant at or after isoString that schedule is open, as a UTC instant.
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: Return how much open time schedule has between two instants, as an exact ISO duration.
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.