[xquery-talk] datatype xs:duration

Andrew Welch andrew.j.welch at gmail.com
Tue Mar 20 02:42:05 PST 2012


> But why can one not add up xs:duration’s and why can’t one add xs:duration to xs:dateTime?

You can add a subtype of xs:duration to a xs:dateTime, eg

xs:dateTime('2012-03-20') + xs:dayTimeDuration('P2D')


-- 
Andrew Welch
http://andrewjwelch.com



More information about the talk mailing list