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

Clarification request on xsd datatypes that "Appendix E Adding durations to dateTimes" applies to

From: Joseph Fialli <Joseph.Fialli@Sun.COM>
Date: 27 Feb 2004 12:24:17 -0700
To: www-xml-schema-comments@w3.org
Message-id: <402A58D1.1070600@sun.com>

        Link:
        http://www.w3.org/TR/xmlschema-2/#adding-durations-to-dateTimes


Clarification Comment:
The XSD builtin datatypes, gMonthDay and time,  are missing from the 
sentence below "This appendix also addresses the
additions of durations to the datatypes ......".  Since Section 3.2.12 
gMonthDay and Section 3.2.8 time contain a
reference to Appendix E, one would conclude they should also be listed 
in this sentence to confirm that the add duration
algorithm also applies to these two types.

Context for clarification:


    E Adding durations to dateTimes

Given a dateTime <http://www.w3.org/TR/xmlschema-2/#dateTime> S and a 
duration <http://www.w3.org/TR/xmlschema-2/#duration> D, this appendix 
specifies how to compute a dateTime 
<http://www.w3.org/TR/xmlschema-2/#dateTime> E where E is the end of the 
time period with start S and duration D i.e. E = S + D. Such 
computations are used, for example, to determine whether a dateTime 
<http://www.w3.org/TR/xmlschema-2/#dateTime> is within a specific time 
period. This appendix also addresses the addition of duration 
<http://www.w3.org/TR/xmlschema-2/#duration>s to the datatypes date 
<http://www.w3.org/TR/xmlschema-2/#date>, gYearMonth 
<http://www.w3.org/TR/xmlschema-2/#gYearMonth>, gYear 
<http://www.w3.org/TR/xmlschema-2/#gYear>, gDay 
<http://www.w3.org/TR/xmlschema-2/#gDay> and gMonth 
<http://www.w3.org/TR/xmlschema-2/#gMonth>, which can be viewed as a set 
of dateTime <http://www.w3.org/TR/xmlschema-2/#dateTime>s. In such 
cases, the addition is made to the first or starting dateTime 
<http://www.w3.org/TR/xmlschema-2/#dateTime> in the set.


-Joe Fialli, Sun Microsystems
Received on Friday, 27 February 2004 14:26:10 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:50:02 UTC