Apr-05-2023, 08:33 PM
(Apr-05-2023, 06:34 PM)deanhystad Wrote: Did you try to sum timedelta objects? I would assume you can sum objects if the objects can be added. You can add timedelta objects.I kind of understand the idea but I do not see how I can use it with the time delta I have as "Time Difference = 0:08:13-<class 'datetime.timedelta'>"
https://docs.python.org/3/library/dateti....timedelta
Pay close attention to what Gribouillis did. In particular this:
sum(d, timedelta(seconds=0))Why do you think there is a timedelta(seconds=0) after the list of times? Isn't that 0 seconds? Why is that there? Maybe looking at the documentation for sum will clear things up.
https://docs.python.org/3/library/functions.html#sum
It makes me sad but we are not on the same Python planet yet brother....
Need to put more work into it.
Thank you!