W3C home > Mailing lists > Public > public-rif-wg@w3.org > March 2010

[testcases] bugs in datetime subtraction

From: Gary Hallmark <gary.hallmark@oracle.com>
Date: Tue, 16 Mar 2010 15:57:25 -0700
Message-ID: <4BA00CD5.80806@oracle.com>
To: RIF WG <public-rif-wg@w3.org>
In the BuiltinsTime test case, I think the following

External( func:subtract-dateTimes( "2000-10-30T06:12:00"^^xs:dateTime 
"1999-11-28T09:00:00Z"^^xs:dateTime) ) = "P337DT2H12M"^^xs:dayTimeDuration
External( func:subtract-dates( "2000-10-30"^^xs:date 
"1999-11-28"^^xs:date ) ) = "P337D"^^xs:dayTimeDuration
External( func:subtract-times( "11:12:00Z"^^xs:time "04:00:00"^^xs:time 
) ) = "PT2H12M"^^xs:dayTimeDuration

should be changed to

External( func:subtract-dateTimes( "2000-10-30T06:12:00Z"^^xs:dateTime 
"1999-11-28T09:00:00Z"^^xs:dateTime) ) = "P337DT21H12M"^^xs:dayTimeDuration
External( func:subtract-dates( "2000-10-30"^^xs:date 
"1999-11-28"^^xs:date ) ) = "P338D"^^xs:dayTimeDuration
External( func:subtract-times( "11:12:00Z"^^xs:time "04:00:00Z"^^xs:time 
) ) = "PT7H12M"^^xs:dayTimeDuration
Received on Tuesday, 16 March 2010 23:01:59 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 16 March 2010 23:02:08 GMT