13 #include <boost/cstdint.hpp>
20 return QString(
"yyyyMMdd'T'hhmmss");
24 return QString(
"yyyyMMdd'T'hhmmsszzz");
28 return QString(
"yyyy-MM-dd hh:mm:ss");
32 return QString(
"yyyy-MM-dd hh:mm:ss.zzz");
37 #if QT_VERSION >= 0x040700
38 return QDateTime::currentDateTime().toMSecsSinceEpoch()*1000;
46 #if QT_VERSION >= 0x040700
47 return QDateTime::currentDateTime().toMSecsSinceEpoch();
49 QDateTime now = QDateTime::currentDateTime();
50 boost::uint64_t now_t64 = now.toTime_t();
52 now_t64 += now.time().msec();
60 time.setMSecsSinceEpoch(secondsSinceEpoch);