saxonica.com

fn:year-from-dateTime

fn:year-from-dateTime( dateTime? $srcval) → integer?

Function signature

$srcval

xs:dateTime ?

Result

xs:integer ?

Extracts the year component of a dateTime value

XPath 2.0 Specification

Next