5
{
    "@type": "OpeningHoursSpecification",
    "dayOfWeek": [
        "Sunday"
    ],
    "Hours": "Closed"
}

I get the following error:

Closed (The property Hours is not recognized by Google for an object of type OpeningHoursSpecification.)

This is how i am doing a weekday

  {
        "@type": "OpeningHoursSpecification",
        "dayOfWeek": [
            "Friday"
        ],
        "Hours" :"10:00 - 17:30"
    },
7

3 Answers 3

3

Maybe i don't understand exactly your purposes, but as stated in the Schema.org/OpeningHoursSpecification documentation

The place is open if the opens property is specified, and closed otherwise.

According to this i would set only opening times by implication of closed is when not open.

PS to go into the case rised by @StephenOstermiller: to deal with exceptions like holidays there is a following standard-conform workaround:

  • The Date format, which is ISO 8601, allows setup of durations, time intervals and repeating intervals and, further, combinations of date and time.
  • These data can be implemented by validFrom / validThrough
5
  • How about the case where you would normally be open on Mondays but you have to specify a Monday holiday where you would be closed? Sep 16, 2019 at 12:52
  • so monday i open 9-5 for sunday what do i put i dont open on sundays Sep 16, 2019 at 12:55
  • @StephenOstermiller Yes, i have had such case - to get it the first time was veeeery tricky for me. Finally i've got a solution using validity (validFrom validThrough) and the date, which allows repeatable dates too.
    – Evgeniy
    Sep 16, 2019 at 12:58
  • 3
    @jibingeorge - for sunday - just nothing. Put only: open monday-saturday 9-17.
    – Evgeniy
    Sep 16, 2019 at 12:59
  • Is there any way to indicate something like "closed on Easter" for a holiday with varying date? Sep 13, 2023 at 19:15
2

From Google documentation (click on "All-day hours" tab)

To show a business is closed all day, set both opens and closes properties to "00:00"

"openingHoursSpecification": [
  {
    "@type": "OpeningHoursSpecification",
    "dayOfWeek": "Sunday",
    "opens": "00:00",
    "closes": "00:00"
  }
]
2

Full Example, of different hours of business in 24Hour format, including closed on Sundays.

    "openingHoursSpecification": [
    {
    "@type": "OpeningHoursSpecification",
    "dayOfWeek": "Monday",
    "opens": "09:00",
    "closes": "17:00"
  },{
    "@type": "OpeningHoursSpecification",
    "dayOfWeek": "Tuesday",
    "opens": "09:00",
    "closes": "17:00"
  },{
    "@type": "OpeningHoursSpecification",
    "dayOfWeek": "Wednesday",
    "opens": "11:00",
    "closes": "20:00"
  },{
    "@type": "OpeningHoursSpecification",
    "dayOfWeek": "Thursday",
    "opens": "09:00",
    "closes": "17:00"
  },{
    "@type": "OpeningHoursSpecification",
    "dayOfWeek": "Friday",
    "opens": "09:00",
    "closes": "17:00"
   },{
    "@type": "OpeningHoursSpecification",
    "dayOfWeek": "Saturday",
    "opens": "09:30",
    "closes": "16:00"
   },{
    "@type": "OpeningHoursSpecification",
    "dayOfWeek": "Sunday",
    "opens": "00:00",
    "closes": "00:00"
  }
],

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.