August 2003
Beginner to intermediate
240 pages
7h 44m
English
months( ) — normalizes a yearMonthDuration into a number of months
| Defined in: XForms 1.0 |
Parameters: string dayTimeDuration (required) |
| Return type: number |
This function computes a whole number of months that is equivalent in
length to the yearMonthDuration parameter (formatted
according to XML Schema rules).
This function makes the distinction of working on a
yearMonthDuration, which is a more fine-grained
datatype than defined by XML Schema. Chapter 4
discusses this in greater detail.
This example returns 14:
months("P1Y2M")Read now
Unlock full access