MarkLogic Server 11.0 Product Documentation
cpf:document-set-last-updated

cpf:document-set-last-updated(
   $doc as xs:string,
   $last-updated as xs:dateTime
) as empty-sequence()

Summary

Set the date and time of the document's last update.

Parameters
doc The URI of the document.
last-updated The date and time at which the document was last updated, typically fn:current-dateTime().

Usage Notes

In general, applications should only set the update time of a document in the document update action and should set it to the current date and time to ensure consistency of processing.

Example

  xquery version "1.0-ml";
  import module namespace cpf = "http://marklogic.com/cpf" 
		  at "/MarkLogic/cpf/cpf.xqy";

  cpf:document-set-last-updated( "/myDocs/example.xml", 
		               fn:current-dateTime() )
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy