holidefs v0.3.2 Holidefs.DateCalculator View Source
Some functions to calculate dynamic holiday dates
Link to this section Summary
Functions
Returns the first day of the given month on the given year
Returns the date of Easter for the given year
Returns the date of Orthodox Easter for the given year
Returns the date of Orthodox Easter for the given year
Returns the next day of week after the given day
Returns the nth day of the week
Returns the previous day of week after the given day
Link to this section Functions
Specs
Returns the first day of the given month on the given year
Specs
Returns the date of Easter for the given year
Examples
iex> Holidefs.DateCalculator.gregorian_easter(2016)
~D[2016-03-27]
iex> Holidefs.DateCalculator.gregorian_easter(2015)
~D[2015-04-05]
Specs
Returns the date of Orthodox Easter for the given year
Examples
iex> Holidefs.DateCalculator.gregorian_orthodox_easter(2016)
~D[2016-05-01]
iex> Holidefs.DateCalculator.gregorian_orthodox_easter(2015)
~D[2015-04-12]
Specs
Returns the date of Orthodox Easter for the given year
Examples
iex> Holidefs.DateCalculator.julian_orthodox_easter(2016)
~D[2016-04-18]
iex> Holidefs.DateCalculator.julian_orthodox_easter(2015)
~D[2015-03-30]
Specs
Returns the next day of week after the given day
Specs
Returns the nth day of the week
Specs
Returns the previous day of week after the given day