View Full Version : Convertng FILETIME timestamp to QDateTime and back again
grabnerj
2nd July 2008, 00:56
I need to convert a FILETIME timestamp to QDateTime and back again. The data I receive and send uses a FILETIME structure to pass the UTC date and time around. I need to do this without lose.
John.
jacek
2nd July 2008, 04:05
I need to do this without lose.
QTime has 1 ms accuracy (on some systems it might be worse), while FILETIME has 100 ns. You can't do that without a lose.
grabnerj
7th July 2008, 23:00
is it possible to so it at 1ms accuracy?
jacek
7th July 2008, 23:27
You can use FileTimeToSystemTime() and pass appropriate fields to QTime constructor.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.