calendar_interval
calendar_interval copied to clipboard
Wrong last element of the interval at years end
Today we have:
iex> Enum.to_list(~I"2020-10/11")
[~I"2020-10", ~I"2020-11/12"]
and consequently we have:
iex> CalendarInterval.relation(~I"2020-10/11", ~I"2020-10/12")
:equal
which is wrong, we should have:
iex> Enum.to_list(~I"2020-10/11")
[~I"2020-10", ~I"2020-11"]