<Solved>QTime::currentTime() question
-
When using QTime::currentTime() to get the current time, what format does that current time come back in. Like, is an integer or some time format or something else? I looked in
http://doc.qt.io/qt-4.8/qtime.html#currentTime
but could not find an answer. -
@cdbean04 said:
When using QTime::currentTime() to get the current time, what format does that current time come back in. Like, is an integer or some time format or something else?
currentTime()
returns a QTime object.QTime does not have a fixed format. You can use
QTime::toString()
to format it however you want.I looked in http://doc.qt.io/qt-4.8/qtime.html#currentTime but could not find an answer.
Look to the left of the function name. That tells you what type the function gives you (
currentTime()
gives you a QTime object,elapsed()
gives you an integer, etc.) -
Thanks for the information