W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > April to June 2002

Request for additional dateTime datatypes

From: Thomas G. Habing <thabing@uiuc.edu>
Date: Thu, 20 Jun 2002 09:07:14 -0500
Message-ID: <3D11E192.F411CDC8@uiuc.edu>
To: www-xml-schema-comments@w3.org


In trying to derive a datatype for the W3CDTF
(http://www.w3.org/TR/NOTE-datetime), I came up with:

<xs:simpleType name="W3CDTF>
  <xs:union memberTypes="xs:gYear xs:gYearMonth xs:date xs:dateTime"/>

This will nearly do it except for the YYYY-MM-DDThh:mmTZD case (dateTime
with no seconds).

How about a xs:dateTimeNoSeconds datatype?  Or better yet a xs:W3CDTF

Another observation:  I don't have a specific need for these, but why aren't
there gHour, gMinute, gSecond, gHourMinute, or gMinuteSecond datatypes,
similar to the gYear, gMonth, etc. datatypes?  They could be used for events
that recur at a specific time each day, for example.


Thomas Habing
Research Programmer, Digital Library Projects
University of Illinois at Urbana-Champaign
155 Grainger Engineering Library Information Center, MC-274
thabing@uiuc.edu, (217) 244-4425
Received on Thursday, 20 June 2002 10:07:17 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:50:00 UTC