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.
<div>
<h1>Music Resource Centre</h1>
<h2>Opening hours</h2>

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

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

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

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

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

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

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

    <h2 >Contact information</h2>
        <div>Email address:
        <a href="mailto:[email protected]">[email protected]</a></div>

    <div>
        <div>
            <h3>Mailing address</h3>
            School of Education - Music Resource Centre<br />Laurentian University<br />
            Sudbury<br />
            ON<br />
            Canada<br />
            P3E 2C6<br />
        </div>
    </div>

    <h2>Branch relationship</h2>
    <div>Parent library:
        <a href="/eg/opac/library/LUSYS">Laurentian University</a>
    </div>
Example encoded as Microdata embedded in HTML.
<div itemscope itemtype="https://schema.org/Library">
    <h1 itemprop="name">
        Music Resource Centre
    </h1>
    <h2>
        Opening hours
    </h2>
    <div itemprop="openingHoursSpecification" itemscope itemtype="https://schema.org/OpeningHoursSpecification">
        <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>
    </div>
    <div itemprop="openingHoursSpecification" itemscope itemtype="https://schema.org/OpeningHoursSpecification">
        <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>
    </div>
    <div itemprop="openingHoursSpecification" itemscope itemtype="https://schema.org/OpeningHoursSpecification">
        <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>
    </div>
    <div itemprop="openingHoursSpecification" itemscope itemtype="https://schema.org/OpeningHoursSpecification">
        <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>
    </div>
    <div itemprop="openingHoursSpecification" itemscope itemtype="https://schema.org/OpeningHoursSpecification">
        <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>
    </div>
    <div itemprop="openingHoursSpecification" itemscope itemtype="https://schema.org/OpeningHoursSpecification">
        <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>
    </div>
    <div itemprop="openingHoursSpecification" itemscope itemtype="https://schema.org/OpeningHoursSpecification">
        <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>
    </div>
    <h2>
        Contact information
    </h2>
    <div>
        Email address: <a href="mailto:[email protected]" itemprop="email">[email protected]</a>
    </div>
    <div>
        <div itemprop="location address" itemscope itemtype="https://schema.org/PostalAddress">
            <h3 itemprop="contactType">
                Mailing address
            </h3><span itemprop="streetAddress">School of Education - Music Resource Centre<br>
            Laurentian University</span><br>
            <span itemprop="addressLocality">Sudbury</span><br>
            <span itemprop="addressRegion">ON</span><br>
            <span itemprop="addressCountry">Canada</span><br>
            <span itemprop="postalCode">P3E 2C6</span><br>
        </div>
    </div>
    <h2>
        Branch relationship
    </h2>
    <div>
        Parent library: <a itemprop="parentOrganization" href="/eg/opac/library/LUSYS">Laurentian University</a>
    </div>
</div>
Example encoded as RDFa embedded in HTML.
<div vocab="https://schema.org/" typeof="Library">
    <h1 property="name">
        Music Resource Centre
    </h1>
    <h2>
        Opening hours
    </h2>
    <div property="openingHoursSpecification" typeof="OpeningHoursSpecification">
        <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>
    </div>
    <div property="openingHoursSpecification" typeof="OpeningHoursSpecification">
        <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>
    </div>
    <div property="openingHoursSpecification" typeof="OpeningHoursSpecification">
        <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>
    </div>
    <div property="openingHoursSpecification" typeof="OpeningHoursSpecification">
        <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>
    </div>
    <div property="openingHoursSpecification" typeof="OpeningHoursSpecification">
        <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>
    </div>
    <div property="openingHoursSpecification" typeof="OpeningHoursSpecification">
        <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>
    </div>
    <div property="openingHoursSpecification" typeof="OpeningHoursSpecification">
        <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>
    </div>
    <h2>
        Contact information
    </h2>
    <div>
        Email address: <a href="mailto:[email protected]" property="email">[email protected]</a>
    </div>
    <div>
        <div property="location address" typeof="PostalAddress">
            <h3 property="contactType">
                Mailing address
            </h3><span property="streetAddress">School of Education - Music Resource Centre<br>
            Laurentian University</span><br>
            <span property="addressLocality">Sudbury</span><br>
            <span property="addressRegion">ON</span><br>
            <span property="addressCountry">Canada</span><br>
            <span property="postalCode">P3E 2C6</span><br>
        </div>
    </div>
    <h2>
        Branch relationship
    </h2>
    <div>
        Parent library: <a property="parentOrganization" href="/eg/opac/library/LUSYS">Laurentian University</a>
    </div>
</div>
Example encoded as JSON-LD in a HTML script tag.
<script type="application/ld+json">
{
  "@context": [
    "https://schema.org",
    { "@language": "en-ca" }
  ],
  "@type": "Library",
  "address":  {
    "@id": "_:school_edu_library_1",
    "@type": "PostalAddress",
    "addressCountry": "Canada",
    "addressLocality": "Sudbury",
    "addressRegion": "ON",
    "contactType": "Mailing address",
    "postalCode": "P3E 2C6",
    "streetAddress": "School of Education - Music Resource Centre Laurentian University"
  },
  "email":  "mailto:[email protected]",
  "location": { "@id": "_:school_edu_library_1" },
  "name":  "Music Resource Centre",
  "parentOrganization": "https://laurentian.concat.ca/eg/opac/library/LUSYS",
  "openingHoursSpecification": [
    {
      "@type": "OpeningHoursSpecification",
      "closes":  "17:00:00",
      "dayOfWeek": "https://schema.org/Sunday",
      "opens":  "09:00:00"
    },
    {
      "@type": "OpeningHoursSpecification",
      "closes": "17:00:00" ,
      "dayOfWeek": "https://schema.org/Saturday",
      "opens": "09:00:00"
    },
    {
      "@type": "OpeningHoursSpecification",
      "closes":  "17:00:00",
      "dayOfWeek": "https://schema.org/Thursday",
      "opens": "09:00:00"
    },
    {
      "@type": "OpeningHoursSpecification",
      "closes": "17:00:00",
      "dayOfWeek": "https://schema.org/Tuesday",
      "opens": "09:00:00"
    },
    {
      "@type": "OpeningHoursSpecification",
      "closes": "17:00:00",
      "dayOfWeek":  "https://schema.org/Friday",
      "opens": "09:00:00"
    },
    {
      "@type": "OpeningHoursSpecification",
      "closes": "17:00:00",
      "dayOfWeek": "https://schema.org/Monday",
      "opens": "09:00:00"
    },
    {
      "@type": "OpeningHoursSpecification",
      "closes": "17:00:00",
      "dayOfWeek":  "https://schema.org/Wednesday",
      "opens": "09:00:00"
    }
  ]
}
</script>
Structured representation of the JSON-LD example.