RE: Request for additional dateTime datatypes

See comments below

All the best, Ashok 
Ashok Malhotra              <mailto:> 
Microsoft Corporation
212 Hessian Hills Road
Croton-On-Hudson, NY 10520 USA 
Redmond: 425-703-9462                New York: 914-271-6477 

-----Original Message-----
From: Thomas G. Habing [] 
Sent: Thursday, June 20, 2002 7:07 AM
Subject: Request for additional dateTime datatypes


In trying to derive a datatype for the W3CDTF
(, 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
[AM] This is not quite what you want but you could create a datatype,
derived from dateTime using a pattern that insisted that the seconds
always be zero.

Another observation:  I don't have a specific need for these, but why
there gHour, gMinute, gSecond, gHourMinute, or gMinuteSecond datatypes,
similar to the gYear, gMonth, etc. datatypes?  They could be used for
that recur at a specific time each day, for example.
[AM] We have had a lot of negative reactions to the gYear, gYearMonth,
gMonth and gMonthDay datatypes.  People claim they are not useful and
because they are in the spec they have to be implemented.  So, I'm not
we will get agreement to add the datatypes you suggest.


Thomas Habing
Research Programmer, Digital Library Projects
University of Illinois at Urbana-Champaign
155 Grainger Engineering Library Information Center, MC-274, (217) 244-4425

Received on Thursday, 20 June 2002 14:20:01 UTC