Last active
March 18, 2018 12:29
-
-
Save samidarko/0f75c838b8fb45f28e698488c89c3cb2 to your computer and use it in GitHub Desktop.
calculate leap yers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
isLeapYear y | |
| y `mod` 4 == 0 = if y `mod` 100 == 0 then (y `mod` 400 == 0) else True | |
| otherwise = False |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment