fn:years-from-duration

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

Function signature

$srcval

xdt:yearMonthDuration ?

Result

xs:integer ?

Extracts the years component of a yearMonthDuration value

XPath 2.0 Specification

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

Expand

Up  Next