MarkLogic 12 EA 1 Product Documentation
xdmp functions (DurationDateTime)
The duration, date, and time built-in functions are XQuery functions
that operate on duration-, date-, and time-related values.
They are defined in
XQuery 1.0
and XPath 2.0 Functions and Operators .
6 functions
Function name
Description
xdmp.daynameFromDate
Returns a string representing the dayname value in the localized value of $arg.
xdmp.monthNameFromDate
Returns month name, calculated from the localized value of $arg.
xdmp.quarterFromDate
Returns an integer between 1 and 4, both inclusive, calculating the quarter component in the localized value of $arg.
xdmp.weekdayFromDate
Returns an integer in the range 1 to 7, inclusive, representing the weekday value in the localized value of $arg.
xdmp.weekFromDate
Returns an integer between 1 and 53, both inclusive, representing the week value in the localized value of $arg.
xdmp.yeardayFromDate
Returns an integer between 1 and 366, both inclusive, representing the yearday value in the localized value of $arg.