[issue8902] add datetime.time.now() for consistency

Alexander Belopolsky report at bugs.python.org
Mon Jun 30 00:25:01 CEST 2014


Alexander Belopolsky added the comment:

I would like to bring this issue to some conclusion.  Here is the summary:

Pro:

   datetime.time.now() is shorter than datetime.datetime.now().time()

Cons:

1.   date, time = datetime.date.today(), datetime.time.now() is attractive, but wrong.

2.   time detached from date is a strange object with limited support in datetime module (no timedelta arithmetics, issue 17267; tzinfo issues; etc.)

3.   No compelling use cases have been presented.

----------
keywords: +easy
nosy: +lemburg
versions: +Python 3.5 -Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8902>
_______________________________________


More information about the Python-bugs-list mailing list