[issue14157] time.strptime without a year fails on Feb 29
Hynek Schlawack
report at bugs.python.org
Fri Apr 13 14:46:47 CEST 2012
Hynek Schlawack <hs at ox.cx> added the comment:
The point isn’t that time.strptime validates dates but that it uses datetime internally:
julian = datetime_date(year, month, day).toordinal() - \
datetime_date(year, 1, 1).toordinal() + 1
Is it worth to reimplement this functionality? It strikes easier to me to just use a different year if year is undefined and date == Feb 29.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14157>
_______________________________________
More information about the Python-bugs-list
mailing list