mirror of
https://github.com/correl/elm.git
synced 2024-11-21 19:18:42 +00:00
6 lines
129 B
Elm
6 lines
129 B
Elm
module Leap exposing (..)
|
|
|
|
|
|
isLeapYear : Int -> Bool
|
|
isLeapYear year =
|
|
year % 4 == 0 && (year % 100 /= 0 || year % 400 == 0)
|