title: Python Time conversion h:m:s to seconds
body: <p>I am aware that with the timedelta function you can convert seconds to h:m:s using something like:</p>
  
  <pre><code>&gt;&gt; import datetime
  &gt;&gt; str(datetime.timedelta(seconds=666)) 
  '0:11:06'
  </code></pre>
  
  <p>But I need to convert h:m:s to seconds, or minutes.</p>
  
  <p>Do you know a function that can do this?</p>