W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > January to March 2003

The validity of "time" value (24:00:00)

From: Stanley Guan <stanley.guan@oracle.com>
Date: Thu, 27 Mar 2003 13:26:15 -0800
Message-ID: <00b601c2f4a7$7f82a7a0$c5b42382@us.oracle.com>
To: <www-xml-schema-comments@w3.org>

From the following snippets, it looks to me 24:00:00 is an acceptable "time"
representation.  However, its semantics is a little bit different from what
the value of "dateTime" type it represents:
    "the dateTime value so represented is the first instant of the following
day"

Do yo think it deserves a clarification on this time value?

Thx,

-Stanley


.2.8.1 Lexical representation
The lexical representation for time is the left truncated lexical
representation for dateTime: hh:mm:ss.sss with optional following time zone
indicator.


3.2.7.1 Lexical representation
<snip>
hh is a two-digit numeral that represents the hour; '24' is permitted if the
minutes and seconds represented are zero, and the dateTime value so
represented is the first instant of the following day (the hour property of
a dateTime object in the ˇvalue spaceˇ cannot have a value greater than 23);
Received on Thursday, 27 March 2003 16:30:53 GMT

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