xs.yearMonthDuration.multiply( value as number ) as xs.yearMonthDuration
Multiplies an xs.yearMonthDuration by a number. Returns an xs.yearMonthDuration.
const v1 = xs.yearMonthDuration("P3Y7M"); v1.multiply(2);