[Qt-interest] How calculate time span (days, hours, minutes) QDateTime difference?
Sean Harmer
sean.harmer at maps-technology.com
Fri Jun 11 19:49:57 CEST 2010
Hi,
On Friday 11 June 2010 16:58:08 Ed Sutton wrote:
> >http://doc.trolltech.com/4.6/qdatetime.html#secsTo
> >
> >gives you seconds.
> >
> >The rest is trivial.
>
> Thank you Dan and Jason.
>
> QDateTime::secsTo() does the trick with some additional work.
>
> I was hoping I had missed the Qt equivalent of the .NET TimeSpan structure.
>
> http://msdn.microsoft.com/en-us/library/system.timespan.aspx
Yes I have been thinking about adding something like this for a while now.
Maybe I will try to put a merge request together on gitorious for such a
class.
Does anybody have any other features that they would like for such a class?
Cheers,
Sean
More information about the Qt-interest-old
mailing list