Oct-31-2018, 10:26 PM
I have a list of times in ISO format: HH:MM:SS representing the durations of various activities. I'd like to add them all. However, much as I've searched the documentation of datetime, I can't find how to do it. I can convert them to timedeltas, and add those to get a result in seconds - but surely there's a more direct way? I can also write my own program, but I would have thought that something so basic as adding times would be built in.
Anyway, any help or advice would be welcome! Thanks.
I've discovered, since I'm working with Pandas, that pandas.Timedelta does exactly what I want!
Anyway, any help or advice would be welcome! Thanks.
I've discovered, since I'm working with Pandas, that pandas.Timedelta does exactly what I want!