W3C home > Mailing lists > Public > public-qt-comments@w3.org > February 2006

[Bug 2789] Substitutability of duration subtypes

From: <bugzilla@wiggum.w3.org>
Date: Sun, 19 Feb 2006 13:55:30 +0000
To: public-qt-comments@w3.org
Cc:
Message-Id: <E1FAp2A-00015a-0I@wiggum.w3.org>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=2789





------- Additional Comments From mike@saxonica.com  2006-02-19 13:55 -------
Ignore comment #11. There are no existing examples in sections 10.4.1
(op:yearMonthDuration-equal) and 10.4.4 (op:dayTimeDuration-equal). Instead,
create some new examples:

op:duration-equal(xdt:yearMonthDuration('P2Y'), xdt:yearMonthDuration('P24M'))
returns true

op:duration-equal(xdt:dayTimeDuration('P10D'), xdt:dayTimeDuration('PT240H'))
returns true

op:duration-equal(xs:duration('P2Y0M0DT0H0M0S'), xdt:yearMonthDuration('P24M'))
returns true

op:duration-equal(xs:duration('P0Y0M10D'), xdt:dayTimeDuration('PT240H'))
returns true

Michael Kay
Received on Sunday, 19 February 2006 13:55:31 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:10 UTC