QDateTime 增加时间
QDateTime finalDate1 = QDateTime::fromString("2021-09-17 00:11:00", "yyyy-MM-dd HH:mm:ss"); QDateTime endTime = finalDate1.addMSecs(120000); qDebug() << "" << endTime.toString("yyyy-MM-dd HH:mm:ss");
"2021-09-17 00:13:00"
##############################