XPath/XQuery dateTime-less-than function


Returns true if the first argument represents an earlier instant in time than the second argument.

Operator Mapping

Defines the semantics of the "lt" operator when applied to two xs:dateTime values. Also used in the definition of the "ge" operator.


$arg1 as xs:dateTime,
$arg2 as xs:dateTime
) as xs:boolean


This function is deterministic, context-dependent, and focus-independent. It depends on implicit-timezone.


If either $arg1 or $arg2 has no timezone component, the effective value of the argument is obtained by substituting the implicit timezone from the dynamic evaluation context.

The function then returns true if and only if the effective value of $arg1 is less than the effective value of $arg2 according to the algorithm defined in section of Order relation on dateTime for xs:dateTime values with timezones. Otherwise the function returns false.