How to convert to Time Duration
<p>The time duration is being described using four sets of double digits numbers separated with columns such as <code>00:02:01:16</code>.
I know that this represents a time interval or a time duration.
I would like to translate it to a single number that represents a time duration in a more common form such as "120 seconds" or "12 minutes". What approach should be taken here?</p>

<p>You need to use <code>timedelta</code>.</p>

<pre><code>from datetime import timedelta
</code></pre>

<p>Assume your time 00:02:01:16 is stored in <code>a</code>, which comes from <code>end_time - start_time</code></p>

<p>This will be automatically be a timedelta object. Then you can use <code>a.total_seconds()</code> to get the seconds information.</p>

<p>Check <a href="https://docs.python.org/3.6/library/datetime.html#datetime.timedelta.total_seconds" rel="nofollow">Timedelta Documentation</a> for more usage and examples</p>

python