[Qt-interest] How calculate time span (days, hours, minutes) QDateTime difference?
Akos.Polster at nokia.com
Akos.Polster at nokia.com
Sat Jun 12 10:44:10 CEST 2010
> I noticed that the operator-() of QDate, QTime and QDateTime have not
> been defined yet. That is excellent, because that means that these could
> be implemented to return a QTimeSpan. That would add to having it feel
> natural.
Check out also Python's timedelta class, and how is it used in date arithmetic: http://docs.python.org/release/2.5.2/lib/datetime-timedelta.html
~ Akos.
More information about the Qt-interest-old
mailing list