(year)
| 2431 | |
| 2432 | |
| 2433 | def _isoweek1monday(year): |
| 2434 | # Helper to calculate the day number of the Monday starting week 1 |
| 2435 | THURSDAY = 3 |
| 2436 | firstday = _ymd2ord(year, 1, 1) |
| 2437 | firstweekday = (firstday + 6) % 7 # See weekday() above |
| 2438 | week1monday = firstday - firstweekday |
| 2439 | if firstweekday > THURSDAY: |
| 2440 | week1monday += 7 |
| 2441 | return week1monday |
| 2442 | |
| 2443 | |
| 2444 | class timezone(tzinfo): |
no test coverage detected
searching dependent graphs…