Skip to content

Reference

phil/opening-hours
TypeKindRole
OpeningHoursfinal readonly classThe week, special hours and time zone; open now, next opening, runs
DayHoursfinal readonly classA day's ranges
TimeRangefinal readonly classWhen a place opens and closes
TimeOfDayfinal readonly classA time to the minute
SpecialHoursfinal readonly classHours replacing the week's for a period
DayOfWeekint-backed enumISO days, and their schema.org names
HoursTextfinal classThe text form
OpeningHoursSchemafinal classschema.org's openingHoursSpecification
OpeningHoursArrayfinal classHours to and from an array, for storage
Exception\OpeningHoursExceptioninterfaceEvery exception of the library
Exception\InvalidOpeningHoursfinal class, InvalidArgumentExceptionHours that cannot be
Exception\UnreadableOpeningHoursfinal class, UnexpectedValueExceptionStored hours that cannot be read back