Loading TOC...

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);

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.