<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/xdmp.documentTimestamp.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>xdmp.documentTimestamp</api:function-name><api:suggest>xdmp.documenttimestamp</api:suggest><api:suggest>xdmp</api:suggest><api:suggest>documenttimestamp</api:suggest><api:function-link mode="xquery" fullname="xdmp:document-timestamp">/apidoc/8.0/xdmp:document-timestamp.xml</api:function-link><api:function mode="javascript" name="documentTimestamp" type="builtin" lib="xdmp" category="Extension" subcategory="MarkLogic Server" hidden="false" bucket="MarkLogic Built-In Functions" prefix="xdmp" namespace="http://marklogic.com/xdmp" fullname="xdmp.documentTimestamp"><api:summary>
  Returns timestamp of the most recent visible update to a
  document, lock, or property.
  Returns the empty sequence if no document, lock, or property
  exists.
</api:summary><api:params><api:param name="uri" type="xs:string"><api:param-description>
    The URI of the document, lock, or property.
  </api:param-description><api:param-name>uri</api:param-name><api:param-type>String</api:param-type></api:param></api:params><api:return>Number?</api:return><api:usage>
  If the current request is part of a multi-statement transaction and
  the most recent visible update was in an earlier statement in the
  transaction, the timestamp for the update has not yet been established,
  so an empty sequence is returned.
</api:usage><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
xdmp.documentTimestamp("example.xml");
=&gt; 13384772182196660
</pre></api:example></api:function></api:function-page>