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
This works in 2.6.4:
hours, minutes, seconds = [int(_) for _ in thestring.split(':')]
If you want to turn it back into a timedelta:
thetimedelta = datetime.timedelta(hours=hours, minutes=minutes, seconds=seconds)