.. _hours-from-dateTime: =================== 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. .. list-table:: :widths: 40 60 :header-rows: 1 * - **Parameters** - **Description** * - arg:dateTime() - Examples ~~~~~~~~ .. list-table:: :widths: 50 50 :header-rows: 1 * - **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 See Also ~~~~~~~~ .. toctree:: :titlesonly: :glob: * :ref:`hours-from-time`.