[Qt-interest] Strange problem storing and retrieving and comparing QTime/QDataTime
Frank Hemer
frank at hemer.org
Tue Nov 17 16:04:24 CET 2009
On Tuesday 17 November 2009 15:40:49 Thiago Macieira wrote:
> Now, remember that QDateTime keeps the time precision in *milliseconds*,
> whereas time_t has a resolution of seconds. My guess is your roundtrip
> through the database discarded the millisecond component (your source was
> file.lastModified(), which does have millisecond resolution).
Also note that some databases (depending on the date type used) don't have a
millisecond precision (mssql has ~3msec precision by default).
Frank
More information about the Qt-interest-old
mailing list