This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Matthias.Meyer
Recipients Matthias.Meyer
Date 2012-05-11.10:54:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1336733675.67.0.302475509156.issue14781@psf.upfronthosting.co.za>
In-reply-to
Content
Hi folks,

What I did:
import time
time.strptime('0000-10-03T15:35:05Z','%Y-%m-%dT%H:%M:%SZ')

What I expected:
time.struct_time(tm_year=0, tm_mon=10, tm_mday=3, tm_hour=15, tm_min=35, tm_sec=5, tm_wday=2, tm_yday=276, tm_isdst=-1)

What I got:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/_strptime.py", line 454, in _strptime_time
    return _strptime(data_string, format)[0]
  File "/usr/lib/python2.7/_strptime.py", line 440, in _strptime
    datetime_date(year, 1, 1).toordinal() + 1
ValueError: year is out of range


Environment:
Ubuntu 12.04 x64
python --version: 2.7.3


If you need more information, please let me know...
History
Date User Action Args
2012-05-11 10:54:35Matthias.Meyersetrecipients: + Matthias.Meyer
2012-05-11 10:54:35Matthias.Meyersetmessageid: <1336733675.67.0.302475509156.issue14781@psf.upfronthosting.co.za>
2012-05-11 10:54:35Matthias.Meyerlinkissue14781 messages
2012-05-11 10:54:34Matthias.Meyercreate