Shawn <swal...@opensolaris.org> added the comment: I'm seeing this when a year *is* specified with Python 2.6 and 2.7:
import time time.strptime("20090229T184823Z", "%Y%m%dT%H%M%SZ") Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.6/_strptime.py", line 454, in _strptime_time return _strptime(data_string, format)[0] File "/usr/lib/python2.6/_strptime.py", line 440, in _strptime datetime_date(year, 1, 1).toordinal() + 1 ValueError: day is out of range for month import datetime datetime.datetime.strptime("20090229T184823Z", "%Y%m%dT%H%M%SZ") Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.6/_strptime.py", line 440, in _strptime datetime_date(year, 1, 1).toordinal() + 1 ValueError: day is out of range for month ---------- nosy: +swalker _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue14157> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com