Format a timedelta object

Steven D'Aprano steve+comp.lang.python at pearwood.info
Thu May 26 01:16:56 EDT 2016


I have a timedelta object, and I want to display it in a nice human-readable 
format like 03:45:17 for "three hours, forty five minutes, 17 seconds".

Is there a standard way to do this?



-- 
Steve




More information about the Python-list mailing list