With the duration values given as a list of strings:
durations = ['00:00:59:35','00:00:55:18', '00:01:04:28']
I need to get the integer values representing the seconds.
Attempt to do it with:
from dateutil.parser import parse
result = parse('00:00:59:35')
Getting a traceback: ValueError: Unknown string format
.
Is there a way to convert this string format to the seconds?