View Source Holidex.Calculators.Easter (Holidex v0.1.5)
Provides calculations for Easter-related dates.
Summary
Functions
Calculates Easter-related dates for a given year.
Types
Functions
Calculates Easter-related dates for a given year.
Returns a struct containing the dates for Good Friday, Easter Sunday, and Easter Monday.
Parameters
year
: The year for which to calculate Easter dates
Examples
iex> Holidex.Calculators.Easter.new(2023)
%Holidex.Calculators.Easter{
year: 2023,
good_friday: ~D[2023-04-07],
easter_sunday: ~D[2023-04-09],
easter_monday: ~D[2023-04-10]
}