Message160404
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... |
|
Date |
User |
Action |
Args |
2012-05-11 10:54:35 | Matthias.Meyer | set | recipients:
+ Matthias.Meyer |
2012-05-11 10:54:35 | Matthias.Meyer | set | messageid: <1336733675.67.0.302475509156.issue14781@psf.upfronthosting.co.za> |
2012-05-11 10:54:35 | Matthias.Meyer | link | issue14781 messages |
2012-05-11 10:54:34 | Matthias.Meyer | create | |
|