Last active
August 29, 2015 14:05
-
-
Save technobulka/56c61872c9cf0b39af7c to your computer and use it in GitHub Desktop.
Get days count by month and year.
This file contains 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
function(m,y){return 31-((m==2)<<!(!(y%400^y%100)&!(y%4)))-(m-1)%7%2} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment