mirror of
https://github.com/correl/elm.git
synced 2024-12-24 03:00:10 +00:00
6 lines
127 B
Text
6 lines
127 B
Text
module Leap exposing (..)
|
|
|
|
|
|
isLeapYear : Int -> Bool
|
|
isLeapYear year =
|
|
year % 4 == 0 && (year % 100 /= 0 || year % 400 == 0)
|