This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 2116 - R-127: Distinction between 00:00:00 and 24:00:00 for time datatype?
Summary: R-127: Distinction between 00:00:00 and 24:00:00 for time datatype?
Status: ASSIGNED
Alias: None
Product: XML Schema
Classification: Unclassified
Component: Datatypes: XSD Part 2 (show other bugs)
Version: 1.0 only
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: C. M. Sperberg-McQueen
QA Contact: XML Schema comments list
URL:
Whiteboard:
Keywords: needsDrafting
Depends on:
Blocks:
 
Reported: 2005-09-09 15:17 UTC by Sandy Gao
Modified: 2007-03-29 18:48 UTC (History)
0 users

See Also:


Attachments

Description Sandy Gao 2005-09-09 15:17:57 UTC
According to section 3.2.8 of "XML Schema: Datatypes" [1]:

"The order relation on time values is the Order relation on dateTime (3.2.7.3) 
using an arbitrary date."

Thus, if one considers the ordering of the values 00:00:00 and 24:00:00, using 
the arbitrary date 2002-03-06, the ordering is the same as that for 2002-03-
06T00:00:00 and 2002-03-06T24:00:00. The latter value is the same as 2002-03-
07T00:00:00. So, according to the definition of the order relation cited above, 
00:00:00 < 24:00:00.

However, according to the definition of the canonical representation of time in 
section 3.2.8.2 [2]

"the canonical representation for midnight is 00:00:00"

The definition of the canonical representation would seem to imply that 
00:00:00 and 24:00:00 are considered to be the same time value.

It appears that one of these 2 sections is incorrect. 

[1] http://www.w3.org/TR/2001/REC-xmlschema-2-20010502/#time 

[2] http://www.w3.org/TR/2001/REC-xmlschema-2-20010502/#time-canonical-repr 

See:
http://lists.w3.org/Archives/Public/www-xml-schema-comments/2002JanMar/0870.html
Comment 1 Sandy Gao 2005-09-09 15:18:22 UTC
Resolved at the 2003-07-31 telecon to classify R-127 as a clarification with 
erratum, and to suggest to the editors that they add a couple of examples.