QT Equiv to VS2010 time(_time_64)
-
Hi all,
The title pretty much says it all but I am looking for QT's version of Microsoft's time(_time_64) function, I need a function that will return the number of seconds since 01/01/1970. I don't need to manipulate this data in any way just need that number.
Thanks
Andrew -
Static "QDateTime::currentMSecsSinceEpoch() ":http://doc.qt.nokia.com/latest/qdatetime.html#currentMSecsSinceEpoch is the Qt equivalent. It returns milliseconds, not seconds, so you might need to divide them by 1000 to get seconds.