This function extracts the months component of a yearMonthDuration , as an integer between -11 and +11. For example, if the supplied argument is «P18M » , the result is 6 .
Argument | Data Type | Meaning |
---|---|---|
input | xdt:yearMonthDuration | The value from which the months component is to be extracted |
Result | xs:integer | The number of months in the duration, after normalizing it so the number of months is less than 12. The value will be negative if the duration is negative |