holidays
holidays copied to clipboard
Elixir library for finding which holidays fall on given dates.
As it stands, the map defining each holiday doesn't have any constraints on what fields it contains. I think this will be done with structs, but I haven't worked with...
This library was written before the [`Date`](https://hexdocs.pm/elixir/Date.html) struct and functions were added to Elixir. It should be updated to use the new type.
Instead of calling `on` with a single date, provide start and end dates and return all the holidays within that range.
The definition modules have a `type` property, but that's not used. We could also return the actual and observed on dates. This would be helpful when the date range `on`...
The definition modules translated from the original Ruby project contain an `observed` property that's similar to `function`, but it's not being used yet. Should callers of the `on` function specify...
Currently all holiday definitions are stored in the state of the `Holidays.Define` GenServer. The holidays matching the given date are found and then filtered to the given regions. Maybe there...
Remove the requirements of starting the `:holidays` application and calling init on each module before it is used.