Type Alias OperationHours

OperationHours: {
    @type?: "OpeningHoursSpecification";
    closes?: Time;
    dayOfWeek?: DayOrPublicHoliday | [DayOrPublicHoliday] | DayOrPublicHoliday[];
    opens?: Time;
    validFrom?: string;
    validThrough?: string;
}

We (almost) follow this schema (http://schema.org/OpeningHoursSpecification) The only difference is that we (like Google: https://developers.google.com/search/docs/data-types/local-businesses) accept dayOfWeek as an array as well as an individual day.

Type declaration

  • Optional@type?: "OpeningHoursSpecification"

    The type of operation hours

    'OpeningHoursSpecification'
    
  • Optionalcloses?: Time

    The time the operation hours end

  • OptionaldayOfWeek?: DayOrPublicHoliday | [DayOrPublicHoliday] | DayOrPublicHoliday[]

    The days of the week the operation hours apply to

  • Optionalopens?: Time

    The time the operation hours start

  • OptionalvalidFrom?: string

    The date the operation hours start, in ISO 8601 format

    date-time

  • OptionalvalidThrough?: string

    The date the operation hours end, in ISO 8601 format

    date-time