XPath/XQuery time-greater-than function

Summary

Returns true if the first xs:time value represents a later instant in time than the second, when both are treated as being times on the same date, before adjusting the timezone.

Operator Mapping

Defines the semantics of the "gt" operator when applied to two xs:time values. Also used in the definition of the "le" operator.

Signature

op:time-greater-than(
$arg1 as xs:time,
$arg2 as xs:time
) as xs:boolean

Properties

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

Rules

The function call op:time-greater-than($A, $B) is defined to return the same result as op:time-less-than($B, $A)

Examples

The expression op:time-greater-than(xs:time("08:00:00+09:00"), xs:time("17:00:00-06:00")) returns false().