Comparisons of Duration, Date and Time Values

xs:time("23:00:00+06:00") lt xs:time("12:00:00-06:00")

from within a Java application, in order to extract the result from the result sequence, one would have to use this code:

boolean n = ((XSBoolean)rs.first()).value(); println(n);

in order to get the result of ‘true’