This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
I believe the results of op-add-dayTimeDuration-to-date-8 are wrong. The query is xs:date("0001-01-01Z") + xdt:dayTimeDuration("-P11DT02H02M") and the expected results are -0001-12-21Z I think the correct result is -0001-12-20Z The rule in 10.8.9 is that you subtract the duration from the starting instant of the date, and then remove the time component from the result. Subtracting 11 days and two hours from 1 Jan 0001 gives you a time around 10pm on 20 Dec 0001 BC, and removing the time components gives you -0001-12-20
Same problem applies to: op-subtract-dayTimeDuration-from-date-1 (Note, Saxon 8.5.1 gives the incorrect results as published, but my code has now been corrected in response to other tests in XQTS!)
Applies also to op-subtract-dayTimeDuration-from-date-7 op-subtract-dayTimeDuration-from-date-8
*** Bug 2413 has been marked as a duplicate of this bug. ***
Agree. Submitted new test results. Please close the bug if you agree with the resolution. Thanks, Carmelo