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

RE: Request for additional dateTime datatypes

From: Ashok Malhotra <ashokma@microsoft.com>
Date: Thu, 20 Jun 2002 11:19:30 -0700
Message-ID: <E5B814702B65CB4DA51644580E4853FB01488899@red-msg-12.redmond.corp.microsoft.com>
To: <thabing@uiuc.edu>, <www-xml-schema-comments@w3.org>

See comments below

All the best, Ashok 
===========================================================
Ashok Malhotra              <mailto: ashokma@microsoft.com> 
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 [mailto:thabing@uiuc.edu] 
Sent: Thursday, June 20, 2002 7:07 AM
To: www-xml-schema-comments@w3.org
Subject: Request for additional dateTime datatypes


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?	
[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
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.
[AM] We have had a lot of negative reactions to the gYear, gYearMonth,
gDay,
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
sure
we will get agreement to add the datatypes you suggest.

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 14:20:01 GMT

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