Why there are no + and - operators in QTime?

60 Views Asked by At

I have 2 QTimes (intended as time intervals), let's say 1:10:00 and 50:45 (HH:MM:SS).

It seems pretty natural to ask the result of time1 + time2 or time1 - time2. One has to resort to all sort of very inelegant calls to addMSecs, msecsSinceStartOfDay, secsTo and so on.

Why have they not added simple operator+ and - to QTime?

Maybe QTime is not a time interval but the time part of a datetime, but then, is there any time interval in QT?

0

There are 0 best solutions below