I used the
timedealta
. Obviously, one day is missing.datetime.date(2021, 12, 31) - datetime.date(2021, 1, 1)
Output:datetime.timedelta(days=364)
The correct result:datetime.date(2022, 1, 1) - datetime.date(2021, 1, 1)
Output:datetime.timedelta(days=365)
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
All humans together. We don't need politicians!