MarkLogic Server 11.0 Product Documentation
xdmp:document-timestampxdmp:document-timestamp(
$uri as xs:string
) as xs:integer?
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.
Parameters |
uri |
The URI of the document, lock, or property.
|
Usage Notes
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.
Example
xdmp:document-timestamp("example.xml")
=> 13384772182196660
Copyright © 2024 MarkLogic Corporation. MARKLOGIC is a
registered trademark of MarkLogic Corporation.