Note: You are viewing the development version of Schema.org. See how we work for more details.

openingHoursSpecification

A Schema.org Property
The opening hours of a certain place.

Values expected to be one of these types

Used on these types

Acknowledgements

GoodRelations Vocabulary Terms
This term uses terminology from the GoodRelations Vocabulary for E-Commerce, created by Martin Hepp. GoodRelations is a data model for sharing e-commerce data on the Web. More information about GoodRelations can be found at http://purl.org/goodrelations/.

Examples

Example 1
Copied
Example notes or example HTML without markup.
  1. <div>
  2. <h1>Music Resource Centre</h1>
  3. <h2>Opening hours</h2>

  4. <div>Monday: <time> 9:00 AM</time> - <time> 5:00 PM</time></div>

  5. <div>Tuesday: <time> 9:00 AM</time> - <time> 5:00 PM</time></div>

  6. <div>Wednesday: <time> 9:00 AM</time> - <time> 5:00 PM</time></div>

  7. <div>Thursday: <time> 9:00 AM</time> - <time> 5:00 PM</time></div>

  8. <div>Friday: <time> 9:00 AM</time> - <time> 5:00 PM</time></div>

  9. <div>Saturday: <time> 9:00 AM</time> - <time> 5:00 PM</time></div>

  10. <div>Sunday: <time> 9:00 AM</time> - <time> 5:00 PM</time></div>

  11.     <h2 >Contact information</h2>
  12.         <div>Email address:
  13.         <a href="mailto:dscott@laurentian.ca">dscott@laurentian.ca</a></div>

  14.     <div>
  15.         <div>
  16.             <h3>Mailing address</h3>
  17.             School of Education - Music Resource Centre<br />Laurentian University<br />
  18.             Sudbury<br />
  19.             ON<br />
  20.             Canada<br />
  21.             P3E 2C6<br />
  22.         </div>
  23.     </div>

  24.     <h2>Branch relationship</h2>
  25.     <div>Parent library:
  26.         <a href="/eg/opac/library/LUSYS">Laurentian University</a>
  27.     </div>
Example encoded as Microdata embedded in HTML.
  1. <div itemscope itemtype="https://schema.org/Library">
  2.     <h1 itemprop="name">
  3.         Music Resource Centre
  4.     </h1>
  5.     <h2>
  6.         Opening hours
  7.     </h2>
  8.     <div itemprop="openingHoursSpecification" itemscope itemtype="https://schema.org/OpeningHoursSpecification">
  9.         <link itemprop="dayOfWeek" href="https://schema.org/Monday">Monday: <time itemprop="opens" content="09:00:00">9:00 AM</time> - <time itemprop="closes" content="17:00:00">5:00 PM</time>
  10.     </div>
  11.     <div itemprop="openingHoursSpecification" itemscope itemtype="https://schema.org/OpeningHoursSpecification">
  12.         <link itemprop="dayOfWeek" href="https://schema.org/Tuesday">Tuesday: <time itemprop="opens" content="09:00:00">9:00 AM</time> - <time itemprop="closes" content="17:00:00">5:00 PM</time>
  13.     </div>
  14.     <div itemprop="openingHoursSpecification" itemscope itemtype="https://schema.org/OpeningHoursSpecification">
  15.         <link itemprop="dayOfWeek" href="https://schema.org/Wednesday">Wednesday: <time itemprop="opens" content="09:00:00">9:00 AM</time> - <time itemprop="closes" content="17:00:00">5:00 PM</time>
  16.     </div>
  17.     <div itemprop="openingHoursSpecification" itemscope itemtype="https://schema.org/OpeningHoursSpecification">
  18.         <link itemprop="dayOfWeek" href="https://schema.org/Thursday">Thursday: <time itemprop="opens" content="09:00:00">9:00 AM</time> - <time itemprop="closes" content="17:00:00">5:00 PM</time>
  19.     </div>
  20.     <div itemprop="openingHoursSpecification" itemscope itemtype="https://schema.org/OpeningHoursSpecification">
  21.         <link itemprop="dayOfWeek" href="https://schema.org/Friday">Friday: <time itemprop="opens" content="09:00:00">9:00 AM</time> - <time itemprop="closes" content="17:00:00">5:00 PM</time>
  22.     </div>
  23.     <div itemprop="openingHoursSpecification" itemscope itemtype="https://schema.org/OpeningHoursSpecification">
  24.         <link itemprop="dayOfWeek" href="https://schema.org/Saturday">Saturday: <time itemprop="opens" content="09:00:00">9:00 AM</time> - <time itemprop="closes" content="17:00:00">5:00 PM</time>
  25.     </div>
  26.     <div itemprop="openingHoursSpecification" itemscope itemtype="https://schema.org/OpeningHoursSpecification">
  27.         <link itemprop="dayOfWeek" href="https://schema.org/Sunday">Sunday: <time itemprop="opens" content="09:00:00">9:00 AM</time> - <time itemprop="closes" content="17:00:00">5:00 PM</time>
  28.     </div>
  29.     <h2>
  30.         Contact information
  31.     </h2>
  32.     <div>
  33.         Email address: <a href="mailto:dscott@laurentian.ca" itemprop="email">dscott@laurentian.ca</a>
  34.     </div>
  35.     <div>
  36.         <div itemprop="location address" itemscope itemtype="https://schema.org/PostalAddress">
  37.             <h3 itemprop="contactType">
  38.                 Mailing address
  39.             </h3><span itemprop="streetAddress">School of Education - Music Resource Centre<br>
  40.             Laurentian University</span><br>
  41.             <span itemprop="addressLocality">Sudbury</span><br>
  42.             <span itemprop="addressRegion">ON</span><br>
  43.             <span itemprop="addressCountry">Canada</span><br>
  44.             <span itemprop="postalCode">P3E 2C6</span><br>
  45.         </div>
  46.     </div>
  47.     <h2>
  48.         Branch relationship
  49.     </h2>
  50.     <div>
  51.         Parent library: <a itemprop="parentOrganization" href="/eg/opac/library/LUSYS">Laurentian University</a>
  52.     </div>
  53. </div>
Example encoded as RDFa embedded in HTML.
  1. <div vocab="https://schema.org/" typeof="Library">
  2.     <h1 property="name">
  3.         Music Resource Centre
  4.     </h1>
  5.     <h2>
  6.         Opening hours
  7.     </h2>
  8.     <div property="openingHoursSpecification" typeof="OpeningHoursSpecification">
  9.         <link property="dayOfWeek" href="https://schema.org/Monday">Monday: <time property="opens" content="09:00:00">9:00 AM</time> - <time property="closes" content="17:00:00">5:00 PM</time>
  10.     </div>
  11.     <div property="openingHoursSpecification" typeof="OpeningHoursSpecification">
  12.         <link property="dayOfWeek" href="https://schema.org/Tuesday">Tuesday: <time property="opens" content="09:00:00">9:00 AM</time> - <time property="closes" content="17:00:00">5:00 PM</time>
  13.     </div>
  14.     <div property="openingHoursSpecification" typeof="OpeningHoursSpecification">
  15.         <link property="dayOfWeek" href="https://schema.org/Wednesday">Wednesday: <time property="opens" content="09:00:00">9:00 AM</time> - <time property="closes" content="17:00:00">5:00 PM</time>
  16.     </div>
  17.     <div property="openingHoursSpecification" typeof="OpeningHoursSpecification">
  18.         <link property="dayOfWeek" href="https://schema.org/Thursday">Thursday: <time property="opens" content="09:00:00">9:00 AM</time> - <time property="closes" content="17:00:00">5:00 PM</time>
  19.     </div>
  20.     <div property="openingHoursSpecification" typeof="OpeningHoursSpecification">
  21.         <link property="dayOfWeek" href="https://schema.org/Friday">Friday: <time property="opens" content="09:00:00">9:00 AM</time> - <time property="closes" content="17:00:00">5:00 PM</time>
  22.     </div>
  23.     <div property="openingHoursSpecification" typeof="OpeningHoursSpecification">
  24.         <link property="dayOfWeek" href="https://schema.org/Saturday">Saturday: <time property="opens" content="09:00:00">9:00 AM</time> - <time property="closes" content="17:00:00">5:00 PM</time>
  25.     </div>
  26.     <div property="openingHoursSpecification" typeof="OpeningHoursSpecification">
  27.         <link property="dayOfWeek" href="https://schema.org/Sunday">Sunday: <time property="opens" content="09:00:00">9:00 AM</time> - <time property="closes" content="17:00:00">5:00 PM</time>
  28.     </div>
  29.     <h2>
  30.         Contact information
  31.     </h2>
  32.     <div>
  33.         Email address: <a href="mailto:dscott@laurentian.ca" property="email">dscott@laurentian.ca</a>
  34.     </div>
  35.     <div>
  36.         <div property="location address" typeof="PostalAddress">
  37.             <h3 property="contactType">
  38.                 Mailing address
  39.             </h3><span property="streetAddress">School of Education - Music Resource Centre<br>
  40.             Laurentian University</span><br>
  41.             <span property="addressLocality">Sudbury</span><br>
  42.             <span property="addressRegion">ON</span><br>
  43.             <span property="addressCountry">Canada</span><br>
  44.             <span property="postalCode">P3E 2C6</span><br>
  45.         </div>
  46.     </div>
  47.     <h2>
  48.         Branch relationship
  49.     </h2>
  50.     <div>
  51.         Parent library: <a property="parentOrganization" href="/eg/opac/library/LUSYS">Laurentian University</a>
  52.     </div>
  53. </div>
Example encoded as JSON-LD in a HTML script tag.
  1. <script type="application/ld+json">
  2. {
  3.   "@context": [
  4.     "https://schema.org",
  5.     { "@language": "en-ca" }
  6.   ],
  7.   "@type": "Library",
  8.   "address":  {
  9.     "@id": "_:school_edu_library_1",
  10.     "@type": "PostalAddress",
  11.     "addressCountry": "Canada",
  12.     "addressLocality": "Sudbury",
  13.     "addressRegion": "ON",
  14.     "contactType": "Mailing address",
  15.     "postalCode": "P3E 2C6",
  16.     "streetAddress": "School of Education - Music Resource Centre Laurentian University"
  17.   },
  18.   "email":  "mailto:dscott@laurentian.ca",
  19.   "location": { "@id": "_:school_edu_library_1" },
  20.   "name":  "Music Resource Centre",
  21.   "parentOrganization": "https://laurentian.concat.ca/eg/opac/library/LUSYS",
  22.   "openingHoursSpecification": [
  23.     {
  24.       "@type": "OpeningHoursSpecification",
  25.       "closes":  "17:00:00",
  26.       "dayOfWeek": "https://schema.org/Sunday",
  27.       "opens":  "09:00:00"
  28.     },
  29.     {
  30.       "@type": "OpeningHoursSpecification",
  31.       "closes": "17:00:00" ,
  32.       "dayOfWeek": "https://schema.org/Saturday",
  33.       "opens": "09:00:00"
  34.     },
  35.     {
  36.       "@type": "OpeningHoursSpecification",
  37.       "closes":  "17:00:00",
  38.       "dayOfWeek": "https://schema.org/Thursday",
  39.       "opens": "09:00:00"
  40.     },
  41.     {
  42.       "@type": "OpeningHoursSpecification",
  43.       "closes": "17:00:00",
  44.       "dayOfWeek": "https://schema.org/Tuesday",
  45.       "opens": "09:00:00"
  46.     },
  47.     {
  48.       "@type": "OpeningHoursSpecification",
  49.       "closes": "17:00:00",
  50.       "dayOfWeek":  "https://schema.org/Friday",
  51.       "opens": "09:00:00"
  52.     },
  53.     {
  54.       "@type": "OpeningHoursSpecification",
  55.       "closes": "17:00:00",
  56.       "dayOfWeek": "https://schema.org/Monday",
  57.       "opens": "09:00:00"
  58.     },
  59.     {
  60.       "@type": "OpeningHoursSpecification",
  61.       "closes": "17:00:00",
  62.       "dayOfWeek":  "https://schema.org/Wednesday",
  63.       "opens": "09:00:00"
  64.     }
  65.   ]
  66. }
  67. </script>
Structured representation of the JSON-LD example.