This entry covers two related functions: hours-from-dateTime() and hours-from-time() .
These functions extract the hour of the day from an xs:time or xs:dateTime value, as an integer in the range 0 to 23. The value that is returned is in the original (localized) timezone associated with the time or dateTime value.
Argument | Data Type | Meaning |
---|---|---|
input | xs:dateTime? or xs:time? | The value from which the hours component is to be extracted. The data type of the supplied argument must correspond to the data type implied by the function name |
Result | xs: intege r | The hours component of the time |