Functions in QTime
-
Yes, a lot. Just read "the docs":http://qt-project.org/doc/qt-5.0/qtcore/qtime.html#msecsTo, and "more":http://qt-project.org/doc/qt-5.0/qtcore/qtime.html#secsTo. Not sure what you mean by 'sum', though.
-
you should use QDateTime for this since your caluclation may also involve days:
Sum: "QDateTime::toTime_t()":http://qt-project.org/doc/qt-4.8/qdatetime.html#toTime_t
Diff: "QDateTime::secsTo()":http://qt-project.org/doc/qt-4.8/qdatetime.html#secsTo