MarkLogic 12 EA 1 Product Documentation
fn.currentTime

fn.currentTime() as (Number|String)

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.currentTime()

=> 14:15:55-07:00
Powered by MarkLogic Server | Terms of Use | Privacy Policy