datetime formatting output

Igor Korot ikorot01 at
Sat Feb 8 09:40:59 CET 2014

Hi, ALL,
I am reading data from the DB (mySQL) where the datetime field is stored as:

2012-12-12 23:59:59.099

When I retrieve this date I am successfully see under debugger the
dateteime object with (2012, 12, 12, 23, 59, 59, 099)

However as you can see from my previous post this date shows up incorrectly

2012-12-12 23:59:59.000099

Notice 3 extra 0's in the milliseconds field.

How do I display this datetime object properly?

Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list