Basically I have the inverse of this problem: Python Time Seconds to h:m:s
I have a string in the format H:MM:SS (always 2 digits for minutes and seconds), and I nee
parts = time_string.split(":") seconds = int(parts[0])*(60*60) + int(parts[1])*60 + int(parts[2])