Message91256
When trying to use datetime.strptime %z directive got an unexpected error.
>>> from datetime import datetime
>>>
>>> fecha = u'Sun Aug 02 19:01:25 +0000 2009'
>>> datetime.strptime(fecha, '%a %b %d %H:%M:%S %z %Y')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.6/_strptime.py", line 317, in _strptime
(bad_directive, format))
ValueError: 'z' is a bad directive in format '%a %b %d %H:%M:%S %z %Y' |
|
Date |
User |
Action |
Args |
2009-08-04 14:04:37 | eka | set | recipients:
+ eka |
2009-08-04 14:04:37 | eka | set | messageid: <1249394677.85.0.527199310346.issue6641@psf.upfronthosting.co.za> |
2009-08-04 14:04:36 | eka | link | issue6641 messages |
2009-08-04 14:04:35 | eka | create | |
|