Created
November 30, 2020 14:59
-
-
Save wasprobot/d2c5cf3ce15595cfa69cc272b95d6d20 to your computer and use it in GitHub Desktop.
day of week 1901 - 2099 (js)
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
(((y-1901) + ((y-1901)/4 >> 0)) + (y%4 ? [0,3,3,6,1,4,6,2,5,0,3,5] : [0,3,4,0,2,5,0,3,6,1,4,6]) [m-1] + d + 1) % 7 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment