<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/fn.currentTime.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>fn.currentTime</api:function-name><api:suggest>fn.currenttime</api:suggest><api:suggest>fn</api:suggest><api:suggest>currenttime</api:suggest><api:function-link mode="xquery" fullname="fn:current-time">/apidoc/8.0/fn:current-time.xml</api:function-link><api:function mode="javascript" name="currentTime" type="builtin" lib="fn" category="ContextBuiltins" bucket="W3C-Standard Functions" hidden="false" prefix="fn" namespace="http://www.w3.org/2005/xpath-functions" fullname="fn.currentTime"><api:summary>
  Returns <code xmlns="http://www.w3.org/1999/xhtml">xs:time(fn:current-dateTime())</code>. This is an
  <code xmlns="http://www.w3.org/1999/xhtml">xs:time</code> (with timezone) that is current at some time
  during the evaluation of a query or transformation in which
  <code xmlns="http://www.w3.org/1999/xhtml">fn:current-time()</code> is executed. This function is
  *stable*. The precise instant during the query or transformation
  represented by the value of <code xmlns="http://www.w3.org/1999/xhtml">fn:current-time()</code> is
  *implementation dependent*.
</api:summary><api:params/><api:return>String</api:return><api:usage>
  <code xmlns="http://www.w3.org/1999/xhtml">fn:current-time()</code> returns an <code xmlns="http://www.w3.org/1999/xhtml">xs:time</code>
  corresponding to the current date and time.  For example, an
  invocation of <code xmlns="http://www.w3.org/1999/xhtml">fn:current-time()</code> might return
  <code xmlns="http://www.w3.org/1999/xhtml">23:17:00.000-05:00</code>.
</api:usage><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
fn.currentTime()

=&gt; 14:15:55-07:00
</pre></api:example></api:function></api:function-page>