Returns the sum of two xs:dayTimeDuration
values.
xs:dayTimeDuration
values.op:add-dayTimeDurations
( $arg1
as xs:dayTimeDuration
,$arg2
as xs:dayTimeDuration
xs:dayTimeDuration
The function returns the result of adding the value of $arg1
to the value
of $arg2
. The result is the xs:dayTimeDuration
whose length in
seconds is equal to the sum of the length in seconds of the two input durations.
For handling of overflow, see .
The expression op:add-dayTimeDurations(xs:dayTimeDuration("P2DT12H5M"),
xs:dayTimeDuration("P5DT12H"))
returns xs:dayTimeDuration('P8DT5M')
.
Either duration (and therefore the result) may be negative.