cpf.documentSetLastUpdated( doc as String, last-updated as Date ) as null
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(). |
const cpf = require('/MarkLogic/cpf/cpf'); declareUpdate(); cpf.documentSetLastUpdated('/myDocs/example.xml', fn.currentDateTime());