Alexander Belopolsky <[email protected]> added the comment:
BTW, it does not bother me that "date.strptime()
seems a bit odd, given that it cannot accept a time part." To me "time" in
strptime means time specification that may include date, time or even just
month. If parsed specification does not fit in date (includes time component),
date.strptime fails. There is nothing wrong with it. An alternative would be
to make {date,time}.strptime() promiscuous and just drop unneeded components,
but that would make these functions less useful because such behavior is simply
datetime.strptime(..).{date,time}().
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue1100942>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com