Loading TOC...

MarkLogic 12 EA 1 Product Documentation
cts:period-range-query-period

cts:period-range-query-period(
   $query as cts:period-range-query
) as xs:anyAtomicType*

Summary

Returns the period used to construct the specified query.

Parameters
query A query.

Example

let $period := cts:period(xs:dateTime("2001-05-31T09:30:10-08:00"),
                          xs:dateTime("2003-05-31T09:30:10-08:00"))
let $query := cts:period-range-query("period1","aln_equals", $period)
return
cts:period-range-query-period($query)
  =>
cts:period(xs:dateTime("2001-05-31T17:30:10"),
xs:dateTime("2003-05-31T17:30:10"))

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