Message378622
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) |
|
Date |
User |
Action |
Args |
2020-10-14 15:17:51 | yurzo | set | recipients:
+ yurzo, belopolsky, steven.daprano, p-ganssle, HassanAbouelela |
2020-10-14 15:17:51 | yurzo | set | messageid: <1602688671.19.0.410284893947.issue41904@roundup.psfhosted.org> |
2020-10-14 15:17:51 | yurzo | link | issue41904 messages |
2020-10-14 15:17:51 | yurzo | create | |
|