I am aware that with the timedelta function you can convert seconds to h:m:s using something like:
>> import datetime >> str(datetime.timedelta(s
>>> def tt(a): ... b = a.split(':') ... return int(b[0]) * 3600 + int(b[1]) * 60 + int(b[2]) ... >>> print tt('0:11:06')
666