Loading TOC...

temporal.statementGetSystemTime

temporal.statementGetSystemTime() as null

Summary

This function gets the system start time on temporal documents that are inserted or deleted in the same statement as this function. If this function is not called along with a temporal document insert or delete, nothing will be affected.

Example

declareUpdate();
var temporal = require("/MarkLogic/temporal.xqy");
var root =
    {"tempdoc": 
       {"content": "content here"}
    };
var options =
    {metadata:
       {validStart: "1601-01-01T13:59:00Z",
        validEnd: "9999-12-31T11:59:59Z"}
    };
temporal.documentInsert("kool", "doc.json", root, options);
temporal.statementGetSystemTime();

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.

Comments

The commenting feature on this page is enabled by a third party. Comments posted to this page are publicly visible.