[Qt-interest] How calculate time span (days, hours, minutes) QDateTime difference?

Dan White ygor at comcast.net
Sat Jun 12 05:36:23 CEST 2010


On Jun 11, 2010, at 7:50 PM, Sean Harmer wrote:
>> Seems like a waste.
>
> Of what? My time (pun intended)? It's my time to waste and if it is  
> of use to
> others as well as myself then why not push it as a merge request?  
> Nobody would
> force you to use the class if you would rather do it manually.

It seems a waste to make a whole class out of what is essentially an  
integer count of seconds between two points in time.

The QTime class already give you the means to "make it pretty", as  
demonstrated.

It seems a waste to complicate in the name of "convenience" something  
that can be done in a few lines of clear code.

There are other issues in the Qt queue that would be a better  
investment of the time.

Just my opinion.



More information about the Qt-interest-old mailing list