Closed q2013 closed 5 months ago
I want to get DATETIME(3) type data from the database, that is, accurate to the millisecond level of data. But now the soci library directly converts the date type of data into std::tm type, the millisecond data is lost, how can I get it?
This is currently not supported, although there is #1093 which could help.
Thank you for your answer. I converted the date type to string type in the library, and then parsed it with my own wrapper date-time class.
I want to get DATETIME(3) type data from the database, that is, accurate to the millisecond level of data. But now the soci library directly converts the date type of data into std::tm type, the millisecond data is lost, how can I get it?