Home > Software engineering >  How to avoid loss precision for datetime type in sqlalchemy?
How to avoid loss precision for datetime type in sqlalchemy?

Time:10-18

I'm a newbie in python and I got this issue. I have a column in my database which has type is datetime and precision is 23 (Ex: 2022-08-22 11:18:00.000) When I retrive data with sqlalchemy, it seem convert to python datetime (2022-08-22 11:18:00). How can I avoid this and get original data? I have no idea now Thank you for reading my question

CodePudding user response:

Maybe there is a presentation issue - zeroed milliseconds are not show. Try with a different value.

  • Related