Subtracting dates to get hours and minutes

MRAB python at mrabarnett.plus.com
Thu Dec 15 23:34:06 EST 2022


On 2022-12-15 22:49, Gronicus at SGA.Ninja wrote:
> Yes, it works like a charm. On the tupility of it all.
> Special thanks for the explanation too…..
> 
>   
> 
> (Originally asked but I found the errors. All is working)
> 
> Now that the code no longer produces the errors, I see that the year and month not included in the calculation? How do I fix this?
> 
>   
How long is a month? How many months are there until January 1? On 
December 25, many months will there be until January 1? And how many 
years are there until January 1?

[snip]



More information about the Python-list mailing list