I\'m having trouble formatting a datetime.timedelta object.
datetime.timedelta
Here\'s what I\'m trying to do: I have a list of objects and one of the members of the cl
If you already have a timedelta obj then just convert that obj into string. Remove the last 3 characters of the string and print. This will truncate the seconds part and print the rest of it in the format Hours:Minutes.
t = str(timedeltaobj) print t[:-3]