How to convert a timedelta object to a string?

tobiah st at tobiah.org
Thu Sep 14 23:12:39 CEST 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