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
When the LaxZonedDateTime is ambiguous, it appears that min(dt::ZonedDateTime, lzdt::LaxZonedDateTime) will always return lzdt (provided dt is within the same period of potential ambiguity) and max will always return dt, even in the above case where it is impossible for lzdt to be less than dt.
Honestly I'm not sure this worth fixing. But it is certainly worth being aware of.
The text was updated successfully, but these errors were encountered:
min
andmax
between aZonedDateTime
and aLaxZonedDateTime
works admirably well in almost all situations:That's great! However...
When the
LaxZonedDateTime
is ambiguous, it appears thatmin(dt::ZonedDateTime, lzdt::LaxZonedDateTime)
will always returnlzdt
(provideddt
is within the same period of potential ambiguity) andmax
will always returndt
, even in the above case where it is impossible forlzdt
to be less thandt
.Honestly I'm not sure this worth fixing. But it is certainly worth being aware of.
The text was updated successfully, but these errors were encountered: