Wojtek Mach

Results 77 issues of Wojtek Mach

They will take `calendar_interval.first` and return %Date{} and %Date.Range{} respectively.

Currently we can only compute the relation of intervals with the same precision: ```elixir CalendarInterval.relation(~I"2020", ~I"2020-01/12") ** (FunctionClauseError) no function clause matching in CalendarInterval.relation/2 ``` this restriction seems arbitrary and...

It is sometimes convenient to find "next Monday" or "last Friday", I think we can neatly achieve it with this API: ```elixir # next Monday iex> CalendarInterval.next(~I"2020-07-09", &Date.day_of_week(&1.first) == 1)...

it simply calls `utc_now(:day)`.

Today we have: ```elixir iex> Enum.to_list(~I"2020-10/11") [~I"2020-10", ~I"2020-11/12"] ``` and consequently we have: ```elixir iex> CalendarInterval.relation(~I"2020-10/11", ~I"2020-10/12") :equal ``` which is wrong, we should have: ```elixir iex> Enum.to_list(~I"2020-10/11") [~I"2020-10", ~I"2020-11"]...

Ref https://github.com/wojtekmach/calendar_interval/pull/6#discussion_r323873568

https://travis-ci.org/wojtekmach/calendar_interval/jobs/606359078?utm_medium=notification&utm_source=email

Currently the precision is an atom: ```elixir iex> ~I[2019-01-01].precision :day ``` and so if there's a function that just wants to print, say, day from a given interval it needs...

Ref https://github.com/elixir-lang/elixir/pull/9367

When wrapping Elixir code with Burrito we need a few things: a Mix project with Burrito dep and a proper build environment (Zig, 7z, etc) which adds a little bit...

enhancement