You are reading O'Reilly XForms Essentials by Micah Dubinko. (What is this?) - Buy XForms Essentials Online
| Defined in: XForms 1.0 |
| Parameters: string dayTimeDuration (required) |
| Return type: number |
This function computes a fractional number of seconds that is equivalent in length to the dayTimeDuration parameter (formatted according to XML Schema rules).
This function makes the distinction of working on a dayTimeDuration, which is a more fine-grained datatype than defined by XML Schema. Chapter 4, XML Schema in XForms discusses this in greater detail.
This example returns 297001.5:
seconds("P3DT10H30M1.5S")