QString time = QDateTime::currentDateTime().addSecs(-10).toString("yyyy-MM-dd hh:mm:ss"); //10S之前的时间
qDebug() << time;
QTime current_time = QTime::currentTime(); //当前时间
qDebug() << current_time;
/*
"2017-02-20 16:50:38"
QTime("16:50:48")
*/
QString time = QDateTime::currentDateTime().addSecs(-10).toString("yyyy-MM-dd hh:mm:ss"); //10S之前的时间
qDebug() << time;
QTime current_time = QTime::currentTime(); //当前时间
qDebug() << current_time;
/*
"2017-02-20 16:50:38"
QTime("16:50:48")
*/
下一篇:购房公积金贷款流程
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M