August 2003
Beginner to intermediate
240 pages
7h 44m
English
seconds( ) — normalizes a dayTimeDuration into a number of seconds
| 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
discusses this in greater detail.
This example returns 297001.5:
seconds("P3DT10H30M1.5S")Read now
Unlock full access