title: How do I get milliseconds in a QDateTime with QSqlQuery in Qt C++?
body: <p>I have this sql query:</p>
  
  <pre><code>SELECT LOG_TIME FROM PCY_LOG_EVENTS;
  </code></pre>
  
  <p>This returns data in the format "DD-MMM-YY HH.MM.SS.MS" like this:</p>
  
  <pre><code>30-OCT-11 09.00.57.638000000 AM
  </code></pre>
  
  <p>In my Qt code, I have this:</p>
  
  <pre><code>QSqlQuery query("SELECT LOG_TIME from PCY_LOG_EVENTS", db);
  
  while(query.next()) {
      //Displays a QMessageBox with the millisecond part of the QDateTime
      this-&gt;messageBox(QString::number(query.value(0).toDateTime().time().msec()));
  }
  </code></pre>
  
  <p>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?</p>