QDateTime 增加时间

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"

##############################

posted @ 2021-09-17 14:31  西北逍遥  阅读(1205)  评论(0编辑  收藏  举报