Problems with datetime.datetime.strptime
Tuomas Vesterinen
tuomas.vesterinen at iki.fi
Sun May 10 10:18:30 EDT 2009
Nick Craig-Wood wrote:
> 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.
>
Thanks. I have a Python implementation here:
http://kotisivu.dnainternet.net/tuovest1/booker/booker-0.1.2.tar.gz
See folder booker/csvcnt modules _strptime2.py and time_forms.py.
TV
More information about the Python-list
mailing list