Schema.org openingHours at <time>

I am trying to create a schema.org definition for opening a watch, which is tested in the Google Advanced Snippets Testing Tool.

With this markup, I want to determine that on Monday the store is open from 11:00 to 22:00.

<time datetime="Mo 11:00-22:00" itemprop="openingHours">11:00-22:00</time>

However, the extended snippet testing tool displays:

Warning: opening hours are in datetime format, which does not comply with ISO 8601.

Schema.org defines :

Opening hours for business. Opening hours can be indicated as a weekly time range, starting from days, then once a day. Several days can be listed with commas, "separating every day." Daily or time ranges are specified using the hyphen '-'.

  • : Mo, Tu, We, Th, Fr, Sa, Su.

  • 24:00. , 3 15:00.

  • : <time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm</time>

+5
6

, , - GoodRelations schema.org node:

<div itemscope itemtype="http://schema.org/Place" itemid="#store">
  <link itemprop="http://www.w3.org/1999/02/22-rdf-syntax-ns#type" 
        href="http://purl.org/goodrelations/v1#Location" />
  <span itemprop="name">Hepp Happy Burger Restaurant</span>
  <div itemprop="http://purl.org/goodrelations/v1#hasOpeningHoursSpecification" itemscope 
       itemtype="http://purl.org/goodrelations/v1#OpeningHoursSpecification">
Opening hours: Mo-Fri,
     <link itemprop="hasOpeningHoursDayOfWeek" 
           href="http://purl.org/goodrelations/v1#Monday" />
     <link itemprop="hasOpeningHoursDayOfWeek" 
           href="http://purl.org/goodrelations/v1#Tuesday" />
     <link itemprop="hasOpeningHoursDayOfWeek" 
           href="http://purl.org/goodrelations/v1#Wednesday" />
     <link itemprop="hasOpeningHoursDayOfWeek" 
           href="http://purl.org/goodrelations/v1#Thursday" />
     <link itemprop="hasOpeningHoursDayOfWeek" 
           href="http://purl.org/goodrelations/v1#Friday" />
     <meta itemprop="opens" content="08:00:00">8:00 a.m. -
     <meta itemprop="closes" content="20:00:00">8:00 p.m.
  </div>
</div>

http://www.heppnetz.de/ontologies/goodrelations/v1.html#OpeningHoursSpecification

+3

Google, , ptbello, validator.w3.org .

data time - validator.w3.org, www.google.com/webmasters/tools/richsnippets:

<data itemprop="openingHours" value="Mo-Su 07:00-22:00">7 days a week, 7 am to 22 pm</data>

( freenode # whatwg.)

+2

, , Schema.org Rich Snippets. RSTT ISO 8601, Schema.org . , RSTT , ISO 8601; :

http://www.w3.org/TR/NOTE-datetime

Schema.org, .

, , HTML ?

http://foolip.org/microdatajs/live/

.

+1

, http://www.google.com/webmasters/tools/richsnippets

<div itemscope itemtype="http://schema.org/LocalBusiness"> 
    <time itemprop="openingHours" datetime="Mo-Su 9:00-13:00 16:00-20:00">Monday through Sunday, 9:00 - 13:00, 16:00-20:00</time>.
</div>

http://schema.org/openingHours

+1

<time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">
Tuesdays and Thursdays 4-8pm</time>

:

<meta itemprop="openingHours" content="Tu,Th 16:00-20:00"/>
Tuesdays and Thursdays 4-8pm

.

0

(. Schema.orgs GitHub: Hours "time" ).

time , Schema.org. openingHours, meta data time.

openingHours openingHoursSpecification, openingHoursSpecification ( ) .

0

All Articles