Python: How to get the sum of timedelta?
Eg. I just got a lot of timedelta object, and now I want the sum. That\'s it!
If you have a list of timedelta objects, you could try:
datetime.timedelta(seconds=sum(td.total_seconds() for td in list_of_deltas))