I have this sql query:
SELECT LOG_TIME FROM PCY_LOG_EVENTS;
This returns data in the format "DD-MMM-YY HH.MM.SS.MS" like this:
30-OCT-11 09.00.57.638000000 AM
In my Qt code, I have this:
QSqlQuery query("SELECT LOG_TIME from PCY_LOG_EVENTS", db);
while(query.next()) {
//Displays a QMessageBox with the millisecond part of the QDateTime
this->messageBox(QString::number(query.value(0).toDateTime().time().msec()));
}
I get 0 for all the millisecond values. Is there a reason why the millisecond values are not being stored? How would I get the millisecond values?