How to convert an H:MM:SS time string to seconds in Python?
<p>Basically I have the inverse of this problem: <a href="http://stackoverflow.com/questions/775049/python-time-seconds-to-hms">Python Time Seconds to h:m:s</a></p>

<p>I have a string in the format H:MM:SS (always 2 digits for minutes and seconds), and I need the integer number of seconds that it represents. How can I do this in python?</p>

<p>For example:</p>

<ul>
<li>"1:23:45" would produce an output of 5025</li>
<li>"0:04:15" would produce an output of 255</li>
<li>"0:00:25" would produce an output of 25</li>
</ul>

<p>etc</p>
