[Qt-interest] How calculate time span (days, hours, minutes) QDateTime difference?
Dan White
ygor at comcast.net
Thu Jun 10 18:42:10 CEST 2010
This:
http://doc.trolltech.com/4.6/qdatetime.html#secsTo
gives you seconds.
The rest is trivial.
“Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.”
Bill Waterson (Calvin & Hobbes)
----- Ed Sutton <ESutton at fescorp.com> wrote:
> What is the Qt way to calculate the elapsed date time between two QDateTime values?
>
> My goal is to display the difference in days, hours, and minutes.
>
> Thanks in advance,
>
> -Ed
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list