Loading TOC...

xs.yearMonthDuration.add

xs.yearMonthDuration.add(
   $value as xs.yearMonthDuration
) as xs.yearMonthDuration

Summary

Adds two xs.yearMonthDuration. Returns an xs.yearMonthDuration.

Parameters
$value A year month duration.

Example

const v1 = xs.yearMonthDuration("P3Y7M");
const v2 = xs.yearMonthDuration("P1Y4M");
v1.add(v2)

Comments

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