(year, month, day)
| 513 | (name, offset)) |
| 514 | |
| 515 | def _check_date_fields(year, month, day): |
| 516 | year = _index(year) |
| 517 | month = _index(month) |
| 518 | day = _index(day) |
| 519 | if not MINYEAR <= year <= MAXYEAR: |
| 520 | raise ValueError('year must be in %d..%d' % (MINYEAR, MAXYEAR), year) |
| 521 | if not 1 <= month <= 12: |
| 522 | raise ValueError('month must be in 1..12', month) |
| 523 | dim = _days_in_month(year, month) |
| 524 | if not 1 <= day <= dim: |
| 525 | raise ValueError('day must be in 1..%d' % dim, day) |
| 526 | return year, month, day |
| 527 | |
| 528 | def _check_time_fields(hour, minute, second, microsecond, fold): |
| 529 | hour = _index(hour) |
no test coverage detected