Steven D'Aprano <steve+pyt...@pearwood.info> added the comment:
On Wed, Oct 14, 2020 at 12:45:55AM +0000, Damian Yurzola wrote: > And you also see people doing date math on datetime.date.today which > will result in different answers through out the day. Yes? Is this a problem? If I ask the question "How long is it until Christmas?" the answer should be different if I ask on one minute past midnight on December 24 or one minute to midnight. I daresay that you are correct that many (maybe a majority) of uses of datetime.today are conceptually better as date.today, but not all of them. > I like HassanAbouelela's idea that datetime.datetime.today should > return an arbitrary fixed time rather than an arbitrary variable time. But it's not an arbitrary variable time. It is just a high-resolution (down to the microsecond) version of "today", instead of the low-resolution (down to a single day) date.today. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue41904> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com