OpeningHoursSpecification

A structured value providing information about the opening hours of a place or a certain service inside a place.

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

If the value for the closes property is less than the value for the opens property then the hour range is assumed to span over the next day.

Example eg-0193

Without Markup (source lint)

<div>
  <h1>Middle of Nowhere Foods</h1>
  <h2>Opening hours</h2>
  <p>Normally open daily <time datetime="09:00:00">9am</time>-<time datetime="14:00:00">2pm</time> except on:</p>
  <ul>
    <li>
      <time datetime="2013-12-24">24 December 2013</time> and
      <time datetime="2013-12-25">25 December 2013</time>:
      <time datetime="09:00:00">9am</time>-<time datetime="11:00:00">11am</time>
    </li>
    <li>
      <time datetime="2014-01-01">1st January 2014</time>:
      <time datetime="12:00:00">Noon</time>-<time datetime="14:00:00">2pm</time>
    </li>
  </ul>
</div>

RDFa (source lint)

<div vocab="https://schema.org/" typeof="Store">
  <h1 property="name">Middle of Nowhere Foods</h1>
  <h2>Opening hours</h2>
  <meta property="openingHours" content="Mo,Tu,We,Th,Fr,Sa,Su 09:00-14:00">
  <p>Normally open daily <time datetime="09:00:00">9am</time>-<time datetime="14:00:00">2pm</time> except on:</p>
  <ul>
    <li property="openingHoursSpecification" typeof="OpeningHoursSpecification">
      <time property="validFrom" datetime="2013-12-24">24 December 2013</time> and
      <time property="validThrough" datetime="2013-12-25">25 December 2013</time>:
      <time property="opens" datetime="09:00:00">9am</time>-<time property="closes" datetime="11:00:00">11am</time>
    </li>
    <li property="openingHoursSpecification" typeof="OpeningHoursSpecification">
      <time property="validFrom validThrough" datetime="2014-01-01">1st January 2014</time>:
      <time property="opens" datetime="12:00:00">Noon</time>-<time property="closes" datetime="14:00:00">2pm</time>
    </li>
  </ul>
</div>

microdata (source lint)

<div itemscope itemtype="https://schema.org/Store">
  <h1 itemprop="name">Middle of Nowhere Foods</h1>
  <h2>Opening hours</h2>
    <meta itemprop="openingHours" content="Mo,Tu,We,Th,Fr,Sa,Su 09:00-14:00">
    <p>Normally open daily <time datetime="09:00:00">9am</time>-<time datetime="14:00:00">2pm</time> except on:</p>
  <ul>
    <li itemprop="openingHoursSpecification" itemscope itemtype="https://schema.org/OpeningHoursSpecification">
      <time itemprop="validFrom" datetime="2013-12-24">24 December 2013</time> and
      <time itemprop="validThrough" datetime="2013-12-25">25 December 2013</time>:
      <time itemprop="opens" datetime="09:00:00">9am</time>-<time itemprop="closes" datetime="11:00:00">11am</time>
    </li>
    <li itemprop="openingHoursSpecification" itemscope itemtype="https://schema.org/OpeningHoursSpecification">
      <time itemprop="validFrom validThrough" datetime="2014-01-01">1st January 2014</time>:
      <time itemprop="opens" datetime="12:00:00">Noon</time>-<time itemprop="closes" datetime="14:00:00">2pm</time>
    </li>
  </ul>
</div>

JSON-LD (source lint)

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Store",
  "name": "Middle of Nowhere Foods",
  "openingHours": "Mo,Tu,We,Th,Fr,Sa,Su 09:00-14:00",
  "openingHoursSpecification":
  [
    {
      "@type": "OpeningHoursSpecification",
      "validFrom": "2013-12-24",
      "validThrough": "2013-12-25",
      "opens": "09:00:00",
      "closes": "11:00:00"
    },
    {
      "@type": "OpeningHoursSpecification",
      "validFrom": "2014-01-01",
      "validThrough": "2014-01-01",
      "opens": "12:00:00",
      "closes": "14:00:00"
    }
  ]
}
</script>

structured

rdf:type schema:Store
schema:name Middle of Nowhere Foods
schema:openingHours Mo,Tu,We,Th,Fr,Sa,Su 09:00-14:00
schema:openingHoursSpecification
  • rdf:type schema:OpeningHoursSpecification
    schema:closes 02:00:00 PM UTC
    schema:opens 12:00:00 PM UTC
    schema:validFrom 2014-01-01
    schema:validThrough 2014-01-01
  • rdf:type schema:OpeningHoursSpecification
    schema:closes 11:00:00 AM UTC
    schema:opens 09:00:00 AM UTC
    schema:validFrom 2013-12-24
    schema:validThrough 2013-12-25