.. _hours-from-time: =============== hours-from-time =============== The hour portion of a time Description ~~~~~~~~~~~ The fn:hours-from-time function returns the hour portion of an xs:time value, as an integer between 0 and 23 inclusive. .. list-table:: :widths: 40 60 :header-rows: 1 * - **Parameters** - **Description** * - arg:time() - Examples ~~~~~~~~ .. list-table:: :widths: 50 50 :header-rows: 1 * - **XPath** - **Results** * - hours-from-time(xs:time('10:30:23')) - 10 * - hours-from-time(xs:time('10:30:23-05:00')) - 10 See Also ~~~~~~~~ .. toctree:: :titlesonly: :glob: * :ref:`hours-from-dateTime`.