holidefs v0.2.0 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
Returns the first day of the given month on the given year
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]
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]
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]
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