Message160637
| Author |
Martin.Morrison |
| Recipients |
Arfrever, Martin.Morrison, belopolsky, hynek, pitrou, python-dev, swalker, vstinner |
| Date |
2012年05月14日.16:50:15 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1337014216.65.0.583002633276.issue14157@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
This solution has some very undesirable properties - namely that Mar 1st is now less than Feb 29th!
It seems like the correct follow up fix would be to adjust the date of the returned struct_time back to 1900. The struct_time object doesn't have the validation issue, so this works fine. This pair of fixes then nicely circumvents the intermediate datetime object's checking, while providing a consistent end result. |
|