W3C home > Mailing lists > Public > public-vocabs@w3.org > December 2011

OpeningHours definition

From: ninsky80 <ninsky80@googlemail.com>
Date: Wed, 28 Dec 2011 09:23:00 +0100
Message-ID: <4EFAD1E4.2030806@googlemail.com>
To: public-vocabs@w3.org

I'm trying to create a schema.org definition for openinghours, which 
validates in rich snippets testing tool.

With this markup I want to say that on mondays a shop is open from 

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

The rich snippets testing tool says: *Warning: openinghours refers to a 
datetime format that is not ISO 8601.


*Schema.org says:*

The opening hours for a business. Opening hours can be specified as a 
weekly time range, starting with days, then times per day. Multiple days 
can be listed with commas ',' separating each day. Day or time ranges 
are specified using a hyphen '-'.

Days are specified using the following two-letter combinations: Mo, Tu, 
We, Th, Fr, Sa, Su.

Times are specified using 24:00 time. For example, 3pm is specified as 

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

Thanks in advance

The same post is listed here:
Received on Wednesday, 28 December 2011 17:52:35 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:29:21 UTC