MarkLogic Server 11.0 Product Documentation
xdmp:wallclock-to-timestamp

xdmp:wallclock-to-timestamp(
   $timestamp as xs:dateTime
) as xs:unsignedLong

Summary

Converts an xs:dateTime to a 64 bit timestamp value.

Parameters
timestamp The xs:datetime value.

Example

xdmp:wallclock-to-timestamp(xs:dateTime("2000-01-11T12:01:00"))
=> 9476208600000000
 
Powered by MarkLogic Server | Terms of Use | Privacy Policy