
report at bugs
Apr 13, 2012, 5:46 AM
Post #1 of 16
(93 views)
Permalink
|
|
[issue14157] time.strptime without a year fails on Feb 29
|
|
Hynek Schlawack <hs [at] ox> 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> <http://bugs.python.org/issue14157> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
|