This library makes it easy to compute the date of Easter for any given year.
{ year : Basics.Int
, month : Time.Month
, day : Basics.Int
}
A date consists of year, month and day. The Month
type in
elm/time
is used for the month.
There are three different algorithms for computing the Easter
date. The Western
algorithm is the most widely used nowadays.
easter : EasterMethod -> Basics.Int -> Date
Compute the Easter date for the given method and year
easter Western 2017 -- 2017-04-16
easter Orthodox 1416 -- 1416-04-29