How to convert a timedelta object to a string?

tobiah st at tobiah.org
Thu Sep 14 17:12:39 EDT 2006


Carl J. Van Arsdall wrote:
> Basically I used the datetime module and timedelta objects to calculate 
> a difference between two times.  Now I'm trying to figure out how I make 
> that time delta a string HH:MM:SS 
> 
> 

Oddly enough, str(tdobject) does what you want.

-- 
Posted via a free Usenet account from http://www.teranews.com




More information about the Python-list mailing list