NetBeansв„ў IDE Field Guide: Developing Desktop, Web, Enterprise, and Mobile Applications (2nd Edition)

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

Категории