Loading TOC...

fn 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.

27 functions
Function nameDescription
fn.adjustDateTimeToTimezoneAdjusts an xs:dateTime value to a specific timezone, or to no timezone at all.
fn.adjustDateToTimezoneAdjusts an xs:date value to a specific timezone, or to no timezone at all.
fn.adjustTimeToTimezoneAdjusts an xs:time value to a specific timezone, or to no timezone at all.
fn.dayFromDateReturns an xs:integer between 1 and 31, both inclusive, representing the day component in the localized value of $arg.
fn.dayFromDateTimeReturns an xs:integer between 1 and 31, both inclusive, representing the day component in the localized value of $arg.
fn.daysFromDurationReturns an xs:integer representing the days component in the canonical lexical representation of the value of $arg.
fn.formatDateReturns a formatted date value based on the picture argument.
fn.formatDateTimeReturns a formatted dateTime value based on the picture argument.
fn.formatTimeReturns a formatted time value based on the picture argument.
fn.hoursFromDateTimeReturns an xs:integer between 0 and 23, both inclusive, representing the hours component in the localized value of $arg.
fn.hoursFromDurationReturns an xs:integer representing the hours component in the canonical lexical representation of the value of $arg.
fn.hoursFromTimeReturns an xs:integer between 0 and 23, both inclusive, representing the value of the hours component in the localized value of $arg.
fn.minutesFromDateTimeReturns an xs:integer value between 0 and 59, both inclusive, representing the minute component in the localized value of $arg.
fn.minutesFromDurationReturns an xs:integer representing the minutes component in the canonical lexical representation of the value of $arg.
fn.minutesFromTimeReturns an xs:integer value between 0 to 59, both inclusive, representing the value of the minutes component in the localized value of $arg.
fn.monthFromDateReturns an xs:integer between 1 and 12, both inclusive, representing the month component in the localized value of $arg.
fn.monthFromDateTimeReturns an xs:integer between 1 and 12, both inclusive, representing the month component in the localized value of $arg.
fn.monthsFromDurationReturns an xs:integer representing the months component in the canonical lexical representation of the value of $arg.
fn.secondsFromDateTimeReturns an xs:decimal value between 0 and 60.999..., both inclusive representing the seconds and fractional seconds in the localized value of $arg.
fn.secondsFromDurationReturns an xs:decimal representing the seconds component in the canonical lexical representation of the value of $arg.
fn.secondsFromTimeReturns an xs:decimal value between 0 and 60.999..., both inclusive, representing the seconds and fractional seconds in the localized value of $arg.
fn.timezoneFromDateReturns the timezone component of $arg if any.
fn.timezoneFromDateTimeReturns the timezone component of $arg if any.
fn.timezoneFromTimeReturns the timezone component of $arg if any.
fn.yearFromDateReturns an xs:integer representing the year component in the localized value of $arg.
fn.yearFromDateTimeReturns an xs:integer representing the year component in the localized value of $arg.
fn.yearsFromDurationReturns an xs:integer representing the years component in the canonical lexical representation of the value of $arg.
Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy