I thought it'd be easy to determine if a date is a holiday in code (w/o an external API), but some holidays are easier than others
- Christmas: December 25
- Thanksgiving: 4th Thursday of November
- Easter: 1st Sunday after the first full moon on or after March 21
After falling down this rabbit hole I learned that there is an algorithm for determining the date of Easter, so naturally I felt compelled to turn it into an Elixir package:
iex> with today <- Date.utc_today(),
...> {:ok, easter} <- Easter.get_date(today.year),
...> do: today == easter
true