Schema.org opening hours with lunch break

1.5k views Asked by At

My office is available Mon-Fri from 8-12, and then 1-5. In other words, we have a one hour lunch break where the office is closed.

How can I express this with Schema.org?

Am I allowed to have two time stamps in the same code like this?

<time itemprop="openingHours" datetime="Mo,Tu,We,Th,Fr 08:00-12:00 13:00-17:00">Monday through Friday, 8 a.m. to noon</time>
1

There are 1 answers

0
unor On

Instead of using openingHours (which seems to be somewhat underspecified), you might want to use openingHoursSpecification.

This allows you to use (in your case, multiple) OpeningHoursSpecification values.

(Side note: using the time element for openingHours is not valid.)