Created
February 23, 2018 21:43
-
-
Save jwhitehorn/1f32d3ace977a8a72d7cfa263eb1a492 to your computer and use it in GitHub Desktop.
The oh so overshadowed, mostly last day of February
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
var isMostlyLastDayOfFebruary = function(){ | |
var now = new Date(); | |
var isFeb28 = now.getMonth() == 1 && now.getDate() == 28; | |
var year = now.GetFullYear(); | |
var isLeapYear = year % 4 == 0 && !(year % 100 == 0 && year % 400 != 0); | |
return isFeb28 && !isLeapYear; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment