Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #65651
| Date | 2014-02-08 00:40 -0800 |
|---|---|
| Subject | datetime formatting output |
| From | Igor Korot <ikorot01@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.6527.1391848868.18130.python-list@python.org> (permalink) |
[Multipart message — attachments visible in raw view] - view raw
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.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
datetime formatting output Igor Korot <ikorot01@gmail.com> - 2014-02-08 00:40 -0800
csiph-web