drewkit/elm-anniversary/1.1.0

Anniversary

Perform basic anniversary calculations

getYears : Zone -> Posix -> DayMonthYear -> Int

Calculates the number of anniversary years passed

isDay : Zone -> Posix -> DayMonth a -> Bool

Returns a Bool on whether or not the provided Time.Zone / Time.Posix occurs on the anniversary

getNext : Zone -> Posix -> DayMonth a -> DayMonthYear

Returns a DayMonthYear record for anniversary's next occurrence

getLast : Zone -> Posix -> DayMonth a -> DayMonthYear

Returns a DayMonthYear record for anniversary's last occurrence