question about timestamp and MySQLdb

Sean Berry sean at buildingonline.com
Wed Oct 19 14:27:24 EDT 2005


I am using MySQLdb to connect to a database and retrieve a timestamp from a 
table.  The problem is I want the timestamp as a long, unformatted and all.

In the table I have a timestamp like this
20051019111617

But, when I retrieve the value and print it I get
 2005-10-19 11:16:17

I want the numeric version, not the converted date.  Any suggestions? 





More information about the Python-list mailing list