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

Hi,

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"/>
</xs:simpleType>

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
datatype?	

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.

Thanks,

-- 
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
http://dli.grainger.uiuc.edu
Received on Thursday, 20 June 2002 10:07:17 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:13:01 GMT