Returns true if the two xs:gMonthDay
values have the same starting instant,
when considered as days in the same year.
xs:gMonthDay
values. Also
used in the definition of the "ne" operator.op:gMonthDay-equal
( $arg1
as xs:gMonthDay
,$arg2
as xs:gMonthDay
xs:boolean
The starting instants of $arg1
and $arg2
are calculated by
supplying the missing components of $arg1
and $arg2
from the
xs:dateTime
template 1972-xx-xxT00:00:00
or an equivalent.
The function returns the result of comparing these two starting instants using
op:dateTime-equal
.
Assume that the dynamic context provides an implicit timezone value of
-05:00
. Assume for the purposes of illustration that the
xs:dateTime
template used is 1972-xx-xxT00:00:00
(this
does not affect the result).
The expression op:gMonthDay-equal(xs:gMonthDay("--12-25-14:00"),
xs:gMonthDay("--12-26+10:00"))
returns true()
.
The expression op:gMonthDay-equal(xs:gMonthDay("--12-25"),
xs:gMonthDay("--12-26Z"))
returns false()
.