Python: How do I get time from a datetime.timedelta object?
A mysql database table has a column whose datatype is time ( http://dev.mysql.com/doc/refman/5.0/en/time.html ). When the table data is accessed, Python returns the value of this column as a datetime.timedelta object. How do I extract the time out of this? (I didn’t really understand what timedelta is for from the python manuals).