Saxonica.com

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

Next