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 hms_to_seconds(t): h, m, s = [int(i) for i in t.split(':')] return 3600*h + 60*m + s