➜

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.

作者 eka
收信人 eka
日期 2009-08-04.14:04:35
SpamBayes Score 8.915276e-06
Marked as misclassified 否
Message-id <1249394677.85.0.527199310346.issue6641@psf.upfronthosting.co.za>
In-reply-to
内容
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'
历史
日期 用户 动作 参数
2009-08-04 14:04:37eka修改recipients: + eka
2009-08-04 14:04:37eka修改messageid: <1249394677.85.0.527199310346.issue6641@psf.upfronthosting.co.za>
2009-08-04 14:04:36eka链接issue6641 messages
2009-08-04 14:04:35eka创建