akheron / elm-easter / Easter

This library makes it easy to compute the date of Easter for any given year.


type alias Date =
{ 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.


type EasterMethod
    = Julian
    | Orthodox
    | Western

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