Warning, /sdk/clazy/tests/qdatetime-utc/main.cpp.fixed.expected is written in an unsupported language. File is not indexed.
0001 #include <QtCore/QDateTime>
0002
0003 void test()
0004 {
0005 QDateTime::currentDateTime(); // OK
0006 QDateTime::currentDateTimeUtc(); // OK
0007 QDateTime::currentDateTimeUtc(); // Warning
0008 #if QT_VERSION_MAJOR == 5
0009 QDateTime::currentSecsSinceEpoch(); // Warning, but this method is removed in Qt6
0010 #endif
0011 QDateTime::currentMSecsSinceEpoch(); // Warning
0012 QDateTime::currentMSecsSinceEpoch(); // Warning, this may even be improved!
0013 QDateTime::currentSecsSinceEpoch(); // Warning
0014 QDateTime::currentSecsSinceEpoch(); // Warning, this may even be improved!
0015 QDateTime::currentDateTimeUtc().addYears(1).toMSecsSinceEpoch();
0016 }