W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > July to September 2005

[Bug 2116] R-127: Distinction between 00:00:00 and 24:00:00 for time datatype?

From: <bugzilla@wiggum.w3.org>
Date: Fri, 09 Sep 2005 15:17:58 +0000
To: www-xml-schema-comments@w3.org
Cc:
Message-Id: <E1EDkda-00079t-1i@wiggum.w3.org>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=2116

           Summary: R-127: Distinction between 00:00:00 and 24:00:00 for
                    time datatype?
           Product: XML Schema
           Version: 1.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSD Part 2: Datatypes
        AssignedTo: cmsmcq@w3.org
        ReportedBy: sandygao@ca.ibm.com
         QAContact: www-xml-schema-comments@w3.org


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
Received on Friday, 9 September 2005 15:18:00 GMT

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