[Interest] Relashionship between time_t and QDateTime
Thiago Macieira
thiago.macieira at intel.com
Tue Aug 27 18:01:08 CEST 2013
On terça-feira, 27 de agosto de 2013 10:19:06, Calogero Mauceri wrote:
> Unfortunately the problem is still there even if I force a toUTC()
> conversion for both QDateTime, either the one initialized from time_t or
> the one returned by QFileInfo :/.
> Similarly
>
> QDateTime dtFromTime_t = QDateTime::fromTime_t(mtime).toUTC();
> QDateTime dtFromFileInfo = fi.lastModified().toUTC();
> int sec = ABS(dtFromTime.secsTo(dtFromFileInfo)); // sec
> returned is 3600
Does this happen to all files?
Does this happen in Qt 5?
What is the difference between the UTC time and the Windows file dialog?
And what timezone is your computer configured to?
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130827/ce1bb9c1/attachment.sig>
More information about the Interest
mailing list