Description
The fn:hours-from-dateTime function returns the hour portion of an xs:dateTime value, as an integer between 0 and 23 inclusive.
This description is © Copyright 2007, Priscilla Walmsley. It is excerpted from the book XQuery by Priscilla Walmsley, O'Reilly, 2007. For a complete explanation of this function, please refer to Appendix A of the book. Arguments and Return TypeName | Type |
$arg |
xs:dateTime? |
return value |
xs:integer? |
ExamplesXPath Example | 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 |
See AlsoHistory |
Recommended Reading:
|