status.datetime = QDateTime(QDate::fromString(carListData[7], "ddMMyy"), QTime::fromString(carListData[1], "hhmmss"));status.datetime.setDate(QDate(status.datetime.date().year() + 100, status.datetime.date().month(), status.datetime.date().day()));QDateTime cur_dt(QDateTime::currentDateTime().toUTC());int period = status.datetime.secsTo(cur_dt);if(period > 900) status.communication = false;else status.communication = true;
C++ (Qt)currentDateTimeUtc()
int period = status.datetime.secsTo(cur_dt);
C++ (Qt)QDateTime(const QDate & date, const QTime & time, Qt::TimeSpec spec = Qt::LocalTime)