Loading TOC...

MarkLogic 12 EA 1 Product Documentation
cts.afterQueryTimestamp

cts.afterQueryTimestamp(
   query as cts.afterQuery
) as (Number|String)

Summary

Returns the timestamp with which a specified query was constructed.

Parameters
query A query.

Example

cts.afterQueryTimestamp(cts.afterQuery(
  xdmp.wallclockToTimestamp(
  fn.currentDateTime().subtract(xs.dayTimeDuration("PT3H"))))
)

// => timestamp of the specified query

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