fn:months-from-duration

fn:months-from-duration( yearMonthDuration? $srcval) → integer?

Function signature

$srcval

xdt:yearMonthDuration ?

Result

xs:integer ?

Extracts the months component of a yearMonthDuration value

XPath 2.0 Specification

Note:The old names get-months-from-yearMonthDuration and months-from-yearMonthDuration are retained as synonyms

Expand

Up  Next