- From: Stella Mitchell <stellamit@gmail.com>
- Date: Sat, 3 Apr 2010 12:13:45 -0400
- To: Gary Hallmark <gary.hallmark@oracle.com>
- Cc: RIF WG <public-rif-wg@w3.org>
- Message-ID: <x2id64b0f2c1004030913qd117fbddmcfc151b83e3775ae@mail.gmail.com>
Ok, I made this change, it looks right to me too. (this test is still in proposed state). Stella On Fri, Apr 2, 2010 at 11:58 PM, Gary Hallmark <gary.hallmark@oracle.com>wrote: > Hi Stella, > > There's a similar problem (mixed use of timezone) a few lines down in the > Builtins_Time testcase: > > External( func:add-dayTimeDuration-to-date("2004-10-30Z"^^xs:date > "P2DT2H30M0S"^^xs:dayTimeDuration ) ) = "2004-11-01"^^xs:date > > I think the fix is to change 2004-11-01 to 2004-11-01Z > > Stella Mitchell wrote: > >> I changed those three lines in the Builtins_Time testcase and changed the >> status from Approved to Proposed. >> Stella >> >> On Mon, Mar 22, 2010 at 3:40 PM, Gary Hallmark <gary.hallmark@oracle.com<mailto: >> gary.hallmark@oracle.com>> wrote: >> >> Hi Stella, >> >> I agree with your changes. Thanks. >> >> Stella Mitchell wrote: >> >> Gary, >> Thank you for finding these bugs. I would make the following >> changes to your answers. Do you agree? >> On Tue, Mar 16, 2010 at 6:57 PM, Gary Hallmark >> <gary.hallmark@oracle.com <mailto:gary.hallmark@oracle.com> >> <mailto:gary.hallmark@oracle.com >> <mailto:gary.hallmark@oracle.com>>> wrote: >> >> >> 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 >> >> External( func:subtract-dateTimes( >> "2000-10-30T06:12:00*-05:00*"^^xs:dateTime >> "1999-11-28T09:00:00Z"^^xs:dateTime) ) = >> "P337DT*2*H12M"^^xs:dayTimeDuration >> >> (This was the original intent, I think, to match the >> example given at the end of >> http://www.w3.org/TR/xpath-functions/#func-subtract-dateTimes >> , and it adds some variety to the subtract-times line where >> both arguments have the same timezone >> External( func:subtract-dates( "2000-10-30*Z*"^^xs:date >> "1999-11-28*Z*"^^xs:date ) ) = "P*337*D"^^xs:dayTimeDuration >> >> (Adding Z because RIF DTB requires explicit timezones. >> Check your count of the duration from the first instant of >> 1999-11-28 to the first instant of 2000-10-30? and take into >> account that the first example at the end of >> http://www.w3.org/TR/xpath-functions/#func-subtract-dates says >> 337 is the right answer) >> Stella On Tue, Mar 16, 2010 at 6:57 PM, Gary Hallmark >> <gary.hallmark@oracle.com <mailto:gary.hallmark@oracle.com> >> <mailto:gary.hallmark@oracle.com >> <mailto:gary.hallmark@oracle.com>>> wrote: >> >> 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 Saturday, 3 April 2010 16:14:17 UTC