Loading TOC...

xs.date.add

xs.date.add(
   $value as xs.yearMonthDuration|xs.dayTimeDuration
) as xs.date

Summary

Returns the end of a time period by adding an xs.yearMonthDuration to the xs.date that starts the period. Returns the end of a time period by adding an xs.dayTimeDuration to the xs.date that starts the period.

Parameters
$value A year month druation or day time duration.

Example

var v1 = xs.date('2013-08-15');
var v2 = xs.yearMonthDuration("P3Y3M");
v1.add(v2);

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy