Skip to content

Instantly share code, notes, and snippets.

@jesboat
Created December 24, 2018 15:45
Show Gist options
  • Save jesboat/d807fb493c29c6c3809e1b7a91a12740 to your computer and use it in GitHub Desktop.
Save jesboat/d807fb493c29c6c3809e1b7a91a12740 to your computer and use it in GitHub Desktop.
Jan 1 of a year with $y mod 400 = 0$,
Jan 2 of a year with $y mod 400 = 0$,
...
Feb 28 of a year with $y mod 400 = 0$,
Feb 29 of a year with $y mod 400 = 0$,
Mar 1 of a year with $y mod 400 = 0$,
...
Dec 31 of a year with $y mod 400 = 0$,
Jan 1 of a year with $y mod 400 = 1$,
Jan 2 of a year with $y mod 400 = 1$,
...
Feb 28 of a year with $y mod 400 = 1$,
Mar 1 of a year with $y mod 400 = 1$,
...
Dec 31 of a year with $y mod 400 = 1$,
[Jan 1 to Dec 31 with no leap day] of a year with $y mod 400 = 2$,
[Jan 1 to Dec 31 with no leap day] of a year with $y mod 400 = 3$,
[Jan 1 to Dec 31 with a leap day] of a year with $y mod 400 = 4$,
...
[Jan 1 to Dec 31 with no leap day] of a year with $y mod 400 = 399$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment