This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author yurzo
Recipients HassanAbouelela, belopolsky, p-ganssle, steven.daprano, yurzo
Date 2020-10-14.15:17:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1602688671.19.0.410284893947.issue41904@roundup.psfhosted.org>
In-reply-to
Content
Sorry I got my "current" wrong and I can't find the edit button
Here again:


> "How long is it until Christmas?"

# Current implementation
In [23]: datetime.datetime(2020, 12, 25) - datetime.datetime.today()
Out[23]: datetime.timedelta(days=71, seconds=53018, microseconds=941806)

# Hassan's
In [16]: datetime.datetime(2020, 12, 25) - datetime.datetime(datetime.datetime.today().year, datetime.datetime.today().month, datetime.datetime.today().day)
Out[16]: datetime.timedelta(days=72)
History
Date User Action Args
2020-10-14 15:17:51yurzosetrecipients: + yurzo, belopolsky, steven.daprano, p-ganssle, HassanAbouelela
2020-10-14 15:17:51yurzosetmessageid: <1602688671.19.0.410284893947.issue41904@roundup.psfhosted.org>
2020-10-14 15:17:51yurzolinkissue41904 messages
2020-10-14 15:17:51yurzocreate