saxon:yearMonthDuration-from-months()

yearMonthDuration-from-months(integer)

This returns an instance of xdt:yearMonthDuration corresponding to the given number of months.

This function is deprecated, since the same effect can be achieved using the expression xdt:yearMonthDuration("P1M") * $N

Expand

Up  Next