Problems with datetime.datetime.strptime
Nick Craig-Wood
nick at craig-wood.com
Sun May 10 03:30:05 EDT 2009
Tuomas Vesterinen <tuomas.vesterinen at iki.fi> wrote:
> I hoped that I could get rid of my special module _strptime2 when
> porting to Python 3.0. But testing is a disappointment.
[snip]
> C :
> strftime('%a %b %e %H:%M:%S %Y')='Sat May 9 11:26:12 2009'
> strptime('Sat May 9 11:26:12 2009','%a %b %e %H:%M:%S %Y')=
> 'e' is a bad directive in format '%a %b %e %H:%M:%S %Y'
[snip]
> What to do.
I'd start by checking out the code for python 3 trunk and seeing if I
could fix it. If I could I'd update the unit tests and the
documentation then submit the patch to the python bugtracker.
If I couldn't fix it then I'd report it as a bug.
--
Nick Craig-Wood <nick at craig-wood.com> -- http://www.craig-wood.com/nick
More information about the Python-list
mailing list