Returns the xs:date
that is a given duration after a specified
xs:date
(or before, if the duration is negative).
xs:date
and an
xs:dayTimeDuration
value. op:add-dayTimeDuration-to-date
( $arg1
as xs:date
,$arg2
as xs:dayTimeDuration
xs:date
The function returns the result of casting $arg1
to an
xs:dateTime
, adding $arg2
using the function
op:add-dayTimeDuration-to-dateTime
, and casting the result back to an
xs:date
.
The expression op:add-dayTimeDuration-to-date(xs:date("2004-10-30Z"),
xs:dayTimeDuration("P2DT2H30M0S"))
returns xs:date("2004-11-01Z")
.