hours-from-dateTime
The hour portion of a date/time
Description
The fn:hours-from-dateTime function returns the hour portion of an xs:dateTime value, as an integer between 0 and 23 inclusive.
Parameters |
Description |
---|---|
arg:dateTime() |
Examples
XPath |
Results |
---|---|
hours-from-dateTime(xs:dateTime(‘2006-08-15T10:30:23’)) |
10 |
hours-from-dateTime(xs:dateTime(‘2006-08-15T10:30:23-05:00’)) |
10 |