3 ms·
I'm pretty sure the post's solution is wrong. Examples: 2008-06-11 (Wednesday). Post's function returns 2 instead of 3.
by imaginenore 11y ago
I'm pretty sure the post's solution is wrong.
Examples:
2008-06-11 (Wednesday). Post's function returns 2 instead of 3.
- pveierland 11y agoWhen inputting day of month in range [1,31] and month in range [1,12] the function seems to work fine. Verified here from 1900-01-01 through 2020-01-01: http://ideone.com/te3ywm http://ideone.com/te3ywm