I have seen vast conversations on this topic but if everything is in the same time-zone and daylight saving switchovers are not involved it is relatively straightforward.Check the timedelta docs. Or convert datetimes to ordinals and subtract then convert the result to whatever units please you.M--(Unsigned mail from my phone) -------- Original message --------From: Steve GS <Gronicus@SGA.Ninja> Date: 12/12/22 17:34 (GMT+10:00) To: python-list@python.org Subject: Subtracting dates to get hours and minutes How do I subtract two time/dates and calculate the hours and minutesbetween?Steve-- https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list
- Re: Does one have to use curses to read single characters... DFS
- Re: Does one have to use curses to read single characters... Chris Green
- Re: Does one have to use curses to read single characters... Oscar Benjamin
- Re: Does one have to use curses to read single characters... Chris Nyland
- Re: Does one have to use curses to read single characters... Antoon Pardon
- Re: Does one have to use curses to read single chara... Chris Green
- Re: Does one have to use curses to read single c... Barry Scott
- Re: Does one have to use curses to read sing... Chris Angelico
- Re: Does one have to use curses to read sing... Cameron Simpson
- Subtracting dates to get hours and minut... Steve GS
- RE: Subtracting dates to get hours ... Mike Dewhirst
- Re: Subtracting dates to get hours ... Marc Lucke
- Re: Subtracting dates to get ho... Weatherby,Gerard
- RE: Subtracting dates to get ho... Gronicus
- Re: Subtracting dates to get ho... Thomas Passin
- RE: Subtracting dates to get ho... Gronicus
- Re: Subtracting dates to get ho... Thomas Passin
- RE: Subtracting dates to get ho... Gronicus
- Re: Subtracting dates to get ho... MRAB
- Re: Subtracting dates to get ho... Thomas Passin
- Re: Subtracting dates to get ho... Thomas Passin