Loading TOC...

MarkLogic Server 11.0 Product Documentation
cts.beforeQueryTimestamp

cts.beforeQueryTimestamp(
   query as cts.beforeQuery
) as (Number|String)

Summary

Returns the timestamp with which a specified query was constructed.

Parameters
query A query.

Example

cts.beforeQueryTimestamp(cts.beforeQuery(
  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.