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 2135 - R-144: Adding durations to dateTime
Summary: R-144: Adding durations to dateTime
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-12 15:10 UTC by Sandy Gao
Modified: 2007-03-29 18:48 UTC (History)
0 users

See Also:


Attachments

Description Sandy Gao 2005-09-12 15:10:37 UTC
Section E.1 contains the sentence:

"If a field in S is not specified, it is treated in the calculation as if it 
were the minimum allowed value in that field, however, after the calculation is 
concluded, the corresponding field in E is removed (set to unspecified)." 
I think this sentence is in error and should be deleted. 

The ordering relation for eg gYear specifies: "the order relation on gYear 
values is the order relation on their starting instants". In this case as in 
others, we only need to compare fully-specified dateTime instants. 

The value space of gYear must be considered as containing both the year number 
and the time zone (if any). To compare two values in the gYear value space, you 
convert them to values in the dateTime value space (by using their starting 
instants). Then you compare those two dateTime values using the algorithm in 
3.2.7.3. 

That sentence in section E.1 only makes sense if you take the view that the 
value space of the partially specified dateTimes (like gYear, gMonth) does 
*not* include time zones; in this case, you would need to normalize out the 
time-zone before converting to a time-instant for comparison, and so would be 
applying addition to a partially-specified date time. But this leads to 
nonsense results, as Kawaguchi-san pointed out:

http://lists.w3.org/Archives/Public/www-xml-schema-comments/2001JanMar/0065.html

See:
http://lists.w3.org/Archives/Public/www-xml-schema-comments/2002AprJun/0046.html
Comment 1 Sandy Gao 2005-09-12 15:10:44 UTC
Resolved at the July 2003 f2f to classify as an error w/erratum.