| 63 | | except OverflowError: |
|---|
| 64 | | # 32 bit systems can't handle dates after Jan 2038, so we fake it |
|---|
| 65 | | # in that case (since we only care about the DST flag here). |
|---|
| | 63 | except (OverflowError, ValueError): |
|---|
| | 64 | # 32 bit systems can't handle dates after Jan 2038, and certain |
|---|
| | 65 | # systems can't handle dates before ~1901-12-01: |
|---|
| | 66 | # |
|---|
| | 67 | # >>> time.mktime((1900, 1, 13, 0, 0, 0, 0, 0, 0)) |
|---|
| | 68 | # OverflowError: mktime argument out of range |
|---|
| | 69 | # >>> time.mktime((1850, 1, 13, 0, 0, 0, 0, 0, 0)) |
|---|
| | 70 | # ValueError: year out of range |
|---|
| | 71 | # |
|---|
| | 72 | # In this case, we fake the date, because we only care about the |
|---|
| | 73 | # DST flag. |
|---|