year, month -> number of days in that month in that year.
(year, month)
| 54 | return y*365 + y//4 - y//100 + y//400 |
| 55 | |
| 56 | def _days_in_month(year, month): |
| 57 | "year, month -> number of days in that month in that year." |
| 58 | assert 1 <= month <= 12, month |
| 59 | if month == 2 and _is_leap(year): |
| 60 | return 29 |
| 61 | return _DAYS_IN_MONTH[month] |
| 62 | |
| 63 | def _days_before_month(year, month): |
| 64 | "year, month -> number of days in year preceding first day of month." |
no test coverage detected
searching dependent graphs…