34 #include <boost/cstdint.hpp>
41 return QString(
"yyyyMMdd'T'hhmmss");
45 return QString(
"yyyyMMdd'T'hhmmsszzz");
49 return QString(
"yyyy-MM-dd hh:mm:ss");
53 return QString(
"yyyy-MM-dd hh:mm:ss.zzz");
58 #if QT_VERSION >= 0x040700
59 return QDateTime::currentDateTime().toMSecsSinceEpoch()*1000;
67 #if QT_VERSION >= 0x040700
68 return QDateTime::currentDateTime().toMSecsSinceEpoch();
70 QDateTime now = QDateTime::currentDateTime();
71 boost::uint64_t now_t64 = now.toTime_t();
73 now_t64 += now.time().msec();
81 time.setMSecsSinceEpoch(secondsSinceEpoch);
QString timestampMilliSecondsFormat()
QString timestampSecondsFormatNice()
double getMilliSecondsSinceEpoch()
QString timestampSecondsFormat()
double getMicroSecondsSinceEpoch()
QString toMillisecondsFormatNice(double secondsSinceEpoch)
QString timestampMilliSecondsFormatNice()