MarkLogic 9 Product Documentation
xs.yearMonthDuration.multiply

xs.yearMonthDuration.multiply(
   value as number
) as xs.yearMonthDuration

Summary

Multiplies an xs.yearMonthDuration by a number. Returns an xs.yearMonthDuration.

Parameters
value A number.

Example

const v1 = xs.yearMonthDuration("P3Y7M");
v1.multiply(2);
Powered by MarkLogic Server | Terms of Use | Privacy Policy