[issue20163] ValueError: time data does not match format

STINNER Victor report at bugs.python.org
Tue Jan 7 17:00:11 CET 2014


STINNER Victor added the comment:

> >>> time.strptime ("Dec", "%b")
> ValueError: unconverted data remains: Dec

Ok, so what is the name of the December month?

>>> import time
>>> time.strftime("%b", time.gmtime(1387036705))
'Dec'

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20163>
_______________________________________


More information about the Python-bugs-list mailing list