.. _timezone-from-time: ================== timezone-from-time ================== The timezone portion of a time Description ~~~~~~~~~~~ The fn:timezone-from-time function returns the time zone of an xs:time value, offset from UTC, as an xs:dayTimeDuration value between -PT14H and PT14H. If the time zone is UTC, the value PT0S is returned. .. list-table:: :widths: 40 60 :header-rows: 1 * - **Parameters** - **Description** * - arg:time() - Examples ~~~~~~~~ .. list-table:: :widths: 50 50 :header-rows: 1 * - **XPath** - **Results** * - timezone-from-time(xs:time('09:54:00-05:00')) - -PT5H * - timezone-from-time(xs:time('09:54:00+05:00')) - PT5H * - timezone-from-time(xs:time('09:54:00Z')) - PT0S * - timezone-from-time(xs:time('09:54:00')) - () See Also ~~~~~~~~ .. toctree:: :titlesonly: :glob: * :ref:`timezone-from-date`. * :ref:`timezone-from-dateTime`. * :ref:`functx_timezone-from-duration`.