datetime formatting output

Igor Korot ikorot01 at gmail.com
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
as:

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: <http://mail.python.org/pipermail/python-list/attachments/20140208/12135093/attachment.html>


More information about the Python-list mailing list