I want QDateTime to override the statement - and return a QTimeSpan representing the difference between the two QDateTimes (like the .NET TimeSpan). Since this does not exist in Qt, I decided to implement it.
Unfortunately, QDateTime has no function msecsTo. What is the cleanest way to get the difference between two QDateTimes accurate to the millisecond?
source
share