fn:current-time

fn:current-time() as xs:time

Summary

Returns xs:time(fn:current-dateTime()). This is an xs:time (with timezone) that is current at some time during the evaluation of a query or transformation in which fn:current-time() is executed. This function is *stable*. The precise instant during the query or transformation represented by the value of fn:current-time() is *implementation dependent*.

Usage Notes

fn:current-time() returns an xs:time corresponding to the current date and time. For example, an invocation of fn:current-time() might return 23:17:00.000-05:00.

Example

fn:current-time()

=> 18:24:06-07:00
Powered by MarkLogic Server | Terms of Use | Privacy Policy