Dayoff.Calendar.Easter (Dayoff v0.1.0)

Copy Markdown View Source

Easter Sunday in the Gregorian and the Julian (Orthodox) computus, the Gauss algorithm as the reference implementation's date-easter has it.

Summary

Functions

Western Easter Sunday.

Orthodox Easter Sunday, computed in the Julian calendar and shifted to the Gregorian date.

Functions

gregorian(year)

@spec gregorian(integer()) :: Date.t()

Western Easter Sunday.

iex> Dayoff.Calendar.Easter.gregorian(2026)
~D[2026-04-05]

orthodox(year)

@spec orthodox(integer()) :: Date.t()

Orthodox Easter Sunday, computed in the Julian calendar and shifted to the Gregorian date.

iex> Dayoff.Calendar.Easter.orthodox(2026)
~D[2026-04-12]