XPath/XQuery yearMonthDuration-less-than function

Summary

Returns true if $arg1 is a shorter duration than $arg2.

Operator Mapping

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

Signature

op:yearMonthDuration-less-than(
$arg1 as xs:yearMonthDuration,
$arg2 as xs:yearMonthDuration
) as xs:boolean

Rules

If the number of months in the value of $arg1 is numerically less than the number of months in the value of $arg2, the function returns true.

Otherwise, the function returns false.

Notes

Either or both durations may be negative.