You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's have one and two as the same date in two different calendars (possibly one custom and one built-in).
Then Temporal.PlainDate.compare(one, two) will not yield 0, but rather 1 or -1.
You solve by adding a common calendar, e.g. Temporal.PlainDate.compare(one.withCalendar("iso8601"), two.withCalendar("iso8601"))
which adds some more burden to what @justingrant already mentionned in #1086 .
The documentation specifies that TemporalPlainDate.compare returns 0 if the dates are the same, irrespective of the calendar.
The text was updated successfully, but these errors were encountered:
The documentation was not clear on this, and in the case of equals() was
actually wrong. A true result from equals() implies a zero result from
compare().
Closes: #1199
The documentation was not clear on this, and in the case of equals() was
actually wrong. A true result from equals() implies a zero result from
compare().
Closes: #1199
Let's have
one
andtwo
as the same date in two different calendars (possibly one custom and one built-in).Then
Temporal.PlainDate.compare(one, two)
will not yield 0, but rather 1 or -1.You solve by adding a common calendar, e.g.
Temporal.PlainDate.compare(one.withCalendar("iso8601"), two.withCalendar("iso8601"))
which adds some more burden to what @justingrant already mentionned in #1086 .
The documentation specifies that
TemporalPlainDate.compare
returns 0 if the dates are the same, irrespective of the calendar.The text was updated successfully, but these errors were encountered: