<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/fn.timezoneFromTime.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>fn.timezoneFromTime</api:function-name><api:suggest>fn.timezonefromtime</api:suggest><api:suggest>fn</api:suggest><api:suggest>timezonefromtime</api:suggest><api:function-link mode="xquery" fullname="fn:timezone-from-time">/apidoc/8.0/fn:timezone-from-time.xml</api:function-link><api:function mode="javascript" name="timezoneFromTime" type="builtin" lib="fn" category="DurationDateTimeBuiltins" bucket="W3C-Standard Functions" hidden="false" prefix="fn" namespace="http://www.w3.org/2005/xpath-functions" fullname="fn.timezoneFromTime"><api:summary>
<p xmlns="http://www.w3.org/1999/xhtml">
Returns the timezone component of $arg if any. If $arg has a timezone
component, then the result is an xs:dayTimeDuration that indicates
deviation from UTC; its value may range from +14:00 to -14:00 hours, both
inclusive. Otherwise, the result is the empty sequence.
</p><p xmlns="http://www.w3.org/1999/xhtml">
If $arg is the empty sequence, returns the empty sequence.
</p>
</api:summary><api:params><api:param name="arg" type="xs:time?"><api:param-description>
The time whose timezone component will be returned.
  </api:param-description><api:param-name>arg</api:param-name><api:param-type>String?</api:param-type></api:param></api:params><api:return>xs.dayTimeDuration?</api:return><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
fn.timezoneFromTime(xs.time("13:20:00-05:00"))
=&gt; xs.dayTimeDuration whose value is -PT5H
</pre>
</api:example><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
fn.timezoneFromTime(xs.time("13:20:00"))
=&gt; ()
</pre>
</api:example></api:function></api:function-page>