.. _timezone-from-dateTime: ====================== timezone-from-dateTime ====================== The timezone portion of a date/time Description ~~~~~~~~~~~ The fn:timezone-from-dateTime function returns the time zone of an xs:dateTime value, offset from UTC, as an xs:dayTimeDuration value between -PT14H and PT14H. If the time zone is UTC, the value PT0H is returned. .. list-table:: :widths: 40 60 :header-rows: 1 * - **Parameters** - **Description** * - arg:dateTime() - Examples ~~~~~~~~ .. list-table:: :widths: 25 25 50 :header-rows: 1 * - **XPath** - **Results** - **Explanation** * - timezone-from-dateTime(xs:dateTime('2006-08-15T10:30:23-05:00')) - -PT5H - * - timezone-from-dateTime(xs:dateTime('2006-08-15T10:30:23')) - () - regardless of the implicit time zone See Also ~~~~~~~~ .. toctree:: :titlesonly: :glob: * :ref:`timezone-from-time`. * :ref:`timezone-from-date`. * :ref:`functx_timezone-from-duration`.