Holidays v0.2.4 Holidays.DateCalculator.Easter View Source

Link to this section Summary

Functions

Returns the date of Easter for the given year

Returns the date of Orthodox Easter in the given year

Link to this section Functions

Link to this function

gregorian_easter_for(year)

View Source

Returns the date of Easter for the given year

Examples

iex> Holidays.DateCalculator.Easter.gregorian_easter_for(2016)
{2016, 3, 27}

iex> Holidays.DateCalculator.Easter.gregorian_easter_for(2015)
{2015, 4, 5}
Link to this function

gregorian_orthodox_easter_for(year)

View Source

Returns the date of Orthodox Easter in the given year

Examples

iex> Holidays.DateCalculator.Easter.gregorian_orthodox_easter_for(2016)
{2016, 5, 1}

iex> Holidays.DateCalculator.Easter.gregorian_orthodox_easter_for(1815)
{1815, 4, 30}

iex> Holidays.DateCalculator.Easter.gregorian_orthodox_easter_for(2101)
{2101, 4, 24}
Link to this function

julian_orthodox_easter_for(year)

View Source