<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/xdmp.requestTimestamp.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>xdmp.requestTimestamp</api:function-name><api:suggest>xdmp.requesttimestamp</api:suggest><api:suggest>xdmp</api:suggest><api:suggest>requesttimestamp</api:suggest><api:function-link mode="xquery" fullname="xdmp:request-timestamp">/apidoc/8.0/xdmp:request-timestamp.xml</api:function-link><api:function mode="javascript" name="requestTimestamp" type="builtin" lib="xdmp" category="Extension" subcategory="Search" hidden="false" bucket="MarkLogic Built-In Functions" prefix="xdmp" namespace="http://marklogic.com/xdmp" fullname="xdmp.requestTimestamp"><api:summary>
  Returns the system timestamp for this request if the request is a query
  statement.  Returns the empty sequence if the current request is an update
  statement.
</api:summary><api:params/><api:return>String?</api:return><api:usage>
  The <code xmlns="http://www.w3.org/1999/xhtml">xdmp:request-timestamp</code> function returns the system
  timestamp that is in effect for current query.  This timestamp will
  remain unchanged for the duration of the query. If you want to get
  the most recent system timestamp external to the current running
  context during an update statement (for example, if your query takes
  a long time to run, and there are other updates occurring in your
  database while your update statement is running), you can use
  <code xmlns="http://www.w3.org/1999/xhtml">xdmp:eval</code> to evaluate a separate query statement that
  returns the system timestamp at the time the <code xmlns="http://www.w3.org/1999/xhtml">xdmp:eval</code>
  query is evaluated.
</api:usage><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
xdmp.requestTimestamp();
=&gt; 1234567
</pre></api:example></api:function></api:function-page>