Skip to content

Instantly share code, notes, and snippets.

@mhkeller
Created April 22, 2020 01:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mhkeller/3855d61f8ee642b921d2c7e311e29f79 to your computer and use it in GitHub Desktop.
Save mhkeller/3855d61f8ee642b921d2c7e311e29f79 to your computer and use it in GitHub Desktop.
// const monthLengths = {
// '2020-03': 31,
// '2020-02': 29,
// '2020-01': 31,
// '2019-12': 31,
// '2019-11': 30,
// '2019-10': 31,
// '2019-09': 30,
// '2019-08': 31,
// '2019-07': 31,
// '2019-06': 30,
// '2019-05': 31,
// '2019-04': 30,
// '2019-03': 31,
// '2019-02': 28,
// '2019-01': 31,
// '2018-12': 31,
// '2018-11': 30,
// '2018-10': 31,
// '2018-09': 30,
// '2018-08': 31,
// '2018-07': 31,
// '2018-06': 30,
// '2018-05': 31,
// '2018-04': 30,
// '2018-03': 31,
// '2018-02': 28,
// '2018-01': 31,
// '2017-12': 31,
// '2017-11': 30,
// '2017-10': 31,
// '2017-09': 30,
// '2017-08': 31,
// '2017-07': 31,
// '2017-06': 30,
// '2017-05': 31,
// '2017-04': 30,
// '2017-03': 31,
// '2017-02': 28,
// '2017-01': 31,
// '2016-12': 31,
// '2016-11': 30,
// '2016-10': 31,
// '2016-09': 30,
// '2016-08': 31,
// '2016-07': 31,
// '2016-06': 30,
// '2016-05': 31,
// '2016-04': 30,
// '2016-03': 31,
// '2016-02': 29,
// '2016-01': 31
// };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment