years-from-yearMonthDuration


years -from-yearMonthDuration

This function extracts the years component of a yearMonthDuration , as an integer. For example, if the supplied argument is «-P36M » , the result is -3 .

Argument

Data Type

Meaning

input

xdt:yearMonthDuration

The value from which the years component is to be extracted

Result

xs:integer

The number of years in the duration, after normalizing it so the number of months is less than 12. May be negative




XSLT 2.0 Programmer's Reference
NetBeansв„ў IDE Field Guide: Developing Desktop, Web, Enterprise, and Mobile Applications (2nd Edition)
ISBN: 764569090
EAN: 2147483647
Year: 2003
Pages: 324

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net