MarkLogic Server 11.0 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
Powered by MarkLogic Server | Terms of Use | Privacy Policy