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"

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

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-19
  • 2022-12-23
  • 2022-02-22
  • 2021-06-09
  • 2021-12-13
  • 2021-06-21
猜你喜欢
  • 2022-12-23
  • 2021-07-21
  • 2021-05-21
  • 2022-12-23
  • 2022-12-23
  • 2021-10-21
  • 2022-12-23
相关资源
相似解决方案