Skip to content

Operating Schedule Checker

  • The core functions, which every industry uses.

An operating schedule is a zone, weekly windows, closed dates and one-off overrides. isValidOperatingSchedule says whether the library takes one, and operatingIntervals returns the instants it is open inside an interval. The operating hours guide has the rules.

Paste a schedule as JSON and type an interval, or pick a preset. The answer is one of three: refused, closed in the interval or open in it. When the library refuses the schedule, the page asks it again about one part at a time and lists the parts it refuses on their own.

1. The schedule and the interval

One working week in June 2024.

2. What the library says

isValidOperatingSchedule
no result
operatingIntervals
no result
Open time
no result

3. The calls

Refused is not closed. A schedule with no open hours in the interval is a correct answer, and the tool says “closed” in plain words. A schedule the library refuses is a different thing: it shows NO SIGNAL, and the calls under it show operatingIntervals returning [] all the same.

Parts. The page does not know the rules. It builds a schedule of one part from your own values and asks isValidOperatingSchedule about it. A part the library refuses is named by its path, such as weekly["8"]. Two overrides for one date are refused only together, so no single part is named for them.

Text. The schedule is passed to the library exactly as typed, and the only reading the page does is JSON.parse. Text that is not JSON is the text box’s own error, not a verdict, because the library never saw it.

isValidOperatingSchedule({ timeZone: "UTC", weekly: { 8: [] } }); // false
operatingIntervals({ timeZone: "UTC", weekly: { 8: [] } }, { start: "2024-06-10T00:00:00Z", end: "2024-06-11T00:00:00Z" }); // []

Reference: isValidOperatingSchedule, operatingIntervals and operatingTimeBetween.

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.