# op:time-equal - XPath XQuery Reference

Returns true if the two xs:time values represent the same
            instant in time, when treated as being times on the same date, before adjusting the
            timezone.Defines the
         semantics of the "eq" operator when applied to two xs:time values. Also used
         in the definition of the "ne", "le" and "ge" operators.deterministiccontext-dependentfocus-independentEach of the supplied xs:time values is expanded to an
               xs:dateTime value by associating the time with an arbitrary date. The
            function returns the result of comparing these two xs:dateTime values using
               op:dateTime-equal.The result of the function is thus the same as the value of the expression:op:dateTime-equal(
        fn:dateTime(xs:date('1972-12-31'), $arg1), 
        fn:dateTime(xs:date('1972-12-31'), $arg2))Assume that the date components from the reference xs:dateTime
               correspond to 1972-12-31.op:time-equal(xs:time("08:00:00+09:00"),
                  xs:time("17:00:00-06:00"))false()The xs:dateTimes calculated using the reference date
                  components are 1972-12-31T08:00:00+09:00 and
                     1972-12-31T17:00:00-06:00. These normalize to
                     1972-12-30T23:00:00Z and 1972-12-31T23:00:00Z.
               op:time-equal(xs:time("21:30:00+10:30"),
                  xs:time("06:00:00-05:00"))true()op:time-equal(xs:time("24:00:00+01:00"),
                  xs:time("00:00:00+01:00"))true()This not the result one might expect. For xs:dateTime
                  values, a time of 24:00:00 is equivalent to 00:00:00 on
                  the following day. For xs:time, the normalization from
                     24:00:00 to 00:00:00 happens before the
                     xs:time is converted into an xs:dateTime for the
                  purpose of the equality comparison. For xs:time, any operation on
                     24:00:00 produces the same result as the same operation on
                     00:00:00 because these are two different lexical representations
                  of the same value. 