[xquery-talk] datatype xs:duration

Arve Gengelbach Arve.Gengelbach at uni-konstanz.de
Tue Mar 20 02:33:49 PST 2012

Hi all,

currently working on stuff with xs:duration.

We can not define any useful ordering relation on xs:duration (Section 10.1, XQuery & XPath Functions and Operators).
But why can one not add up xs:duration’s and why can’t one add xs:duration to xs:dateTime?

Same questions in a different way: Given the module [durations]. Can you give a testcase for durations:sum-durations() and durations:add-duration-to-dateTime() to fail?


[durations]: https://gist.github.com/a58090da9cc7f12975b5

More information about the talk mailing list