Holidays.DateCalculator.Easter (Holidays v0.4.0)

View Source

Summary

Functions

Returns the date of Easter for the given year

Returns the date of Orthodox Easter in the given year

Functions

gregorian_easter_for(year)

Returns the date of Easter for the given year

Examples

iex> Holidays.DateCalculator.Easter.gregorian_easter_for(2016)
~D[2016-03-27]

iex> Holidays.DateCalculator.Easter.gregorian_easter_for(2015)
~D[2015-04-05]

gregorian_orthodox_easter_for(year)

Returns the date of Orthodox Easter in the given year

Examples

iex> Holidays.DateCalculator.Easter.gregorian_orthodox_easter_for(2016)
~D[2016-05-01]

iex> Holidays.DateCalculator.Easter.gregorian_orthodox_easter_for(1815)
~D[1815-04-30]

iex> Holidays.DateCalculator.Easter.gregorian_orthodox_easter_for(2101)
~D[2101-04-24]

julian_orthodox_easter_for(year)