BusinessHoursWindow
Schema
One opening window on one day.
Fields
- daystring
Day of week this window applies to.
A name rather than an index on purpose: day-of-week numbering differs between systems — ours is not the same as JavaScript's
Date.getDay()— and a silent off-by-one in opening hours is both easy to introduce and hard to notice. There is nothing to get wrong here.Possible values: [monday, tuesday, wednesday, thursday, friday, saturday, sunday] - startTimestring
Local opening time, 24-hour
HH:mm, e.g.09:00. Interpreted in the location's timezone. - endTimestring
Local closing time, 24-hour
HH:mm. A window ending past midnight belongs to the day it STARTS on, e.g. Friday 22:00-02:00 is one Friday window, not a Friday and a Saturday one.