ISSUE-15: Add Time for xsd:time, DateTime for xsd:datetime

Time and DateTime

Add Time for xsd:time, DateTime for xsd:datetime

State:
CLOSED
Product:
Feedback on Schema.org
Raised by:
Dan Brickley
Opened on:
2012-04-20
Description:
From From Martin Hepp in https://docs.google.com/document/pub?id=1Kx63gW9DBky1j97Jpwl3dU9k0pKPSgCT3EntTVvGjX4

(regarding GoodRelations integration, see http://www.w3.org/wiki/WebSchemas/GoodRelations )

We need http://schema.org/DateTime for xsd:datetime
A combination of date and time of day in the form [-]CCYY-MM-DDThh:mm:ss[Z|(+|-)hh:mm] (see Chapter 5.4 of ISO 8601).
and
http://schema.org/Time for xsd:time
A point in time recurring on multiple days in the form hh:mm:ss[Z|(+|-)hh:mm]
as subtypes of http://schema.org/DataType.
xsd:time is really important for structured opening hours and other GoodRelations features.

Related Actions Items:
No related actions
Related emails:
  1. RE: schema.org v0.97 published, with 'DateTime' and 'Time' added to DataType (from evain@ebu.ch on 2012-08-01)
  2. Re: schema.org v0.97 published, with 'DateTime' and 'Time' added to DataType (from danbri@danbri.org on 2012-08-01)
  3. RE: schema.org v0.97 published, with 'DateTime' and 'Time' added to DataType (from evain@ebu.ch on 2012-08-01)
  4. schema.org v0.97 published, with 'DateTime' and 'Time' added to DataType (from danbri@danbri.org on 2012-07-26)
  5. Re: webschema-ISSUE-16 (Add an Uncertain Date/Time mechanism): ISO8601 doesn't support imprecise dates, useful for cultural heritage, historical data, geneaology [Feedback on Schema.org] (from danbri@danbri.org on 2012-05-17)
  6. RE: For review: Schema.org / Good Relations integration (from jrhyne@thematix.com on 2012-05-11)
  7. Re: For review: Schema.org / Good Relations integration (from eric@semanticweb.com on 2012-05-11)
  8. Re: For review: Schema.org / Good Relations integration (from Jay.Myers@bestbuy.com on 2012-05-11)
  9. For review: Schema.org / Good Relations integration (from danbri@danbri.org on 2012-05-11)
  10. Re: two new issues: schema.org booleans; xsd Time and DateTime (from danbri@danbri.org on 2012-05-11)
  11. Re: two new issues: schema.org booleans; xsd Time and DateTime (from daniel@google.com on 2012-04-20)
  12. two new issues: schema.org booleans; xsd Time and DateTime (from danbri@danbri.org on 2012-04-20)
  13. webschema-ISSUE-15 (Time and DateTime ): Add Time for xsd:time, DateTime for xsd:datetime [Feedback on Schema.org] (from sysbot+tracker@w3.org on 2012-04-20)

Related notes:

See also http://www.hackcraft.net/web/datetime/

http://www.w3.org/TR/xmlschema-2/#datatype-components

http://www.w3.org/TR/xmlschema-2/#time

so ... what is the best way now to sanely cite a public spec for an ISO-8601 profile?

Dan Brickley, 28 May 2012, 18:58:53

After discussion with Martin Hepp, some details:

1. Add a new datatype type, DateTime: for xsd:datetime:

http://schema.org/DateTime

The description is: "A combination of date and time of day in the form [-]CCYY-MM-DDThh:mm:ss[Z|(+|-)hh:mm] (see Chapter 5.4 of ISO 8601). "


2. Add a new datatype type, Time, for xsd:time

http://schema.org/Time

Description is "A point in time recurring on multiple days in the form hh:mm:ss[Z|(+|-)hh:mm] (see http://www.w3.org/TR/xmlschema-2/#time)".

An example use, 'opens' and 'closes':

<div itemscope itemtype="http://schema.org/Place" itemid="#store">
 <span itemprop="name">Hepp's Happy Burger Restaurant</span>
 <div itemprop="openingHoursSpecification" itemscope
      itemtype="http://schema.org/OpeningHoursSpecification">
Opening hours: Mo-Fri,
    <link itemprop="dayOfWeek"
          href="http://purl.org/goodrelations/v1#Monday" />
    <link itemprop="dayOfWeek"
          href="http://purl.org/goodrelations/v1#Tuesday" />
    <link itemprop="dayOfWeek"
          href="http://purl.org/goodrelations/v1#Wednesday" />
    <link itemprop="dayOfWeek"
          href="http://purl.org/goodrelations/v1#Thursday" />
    <link itemprop="dayOfWeek"
          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>

Dan Brickley, 20 Jul 2012, 14:34:50

DateTime and Time have been added to http://schema.org/DataType as of July 25th 2012, in schema version 0.97.

Dan Brickley, 26 Jul 2012, 16:02:50

Display change log ATOM feed


Chair, Staff Contact
Tracker: documentation, (configuration for this group), originally developed by Dean Jackson, is developed and maintained by the Systems Team <w3t-sys@w3.org>.
$Id: 15.html,v 1.1 2019/10/07 07:54:36 carcone Exp $