-
QT 秒/毫秒 转 时分秒
https://blog.csdn.net/hellokandy/article/details/128617368 -
QDatetime获取当前时间戳
QDateTime::currentMSecsSinceEpoch()函数返回的是从1970年1月1日UTC至今的毫秒数。
qint64 timestamp = QDateTime::currentMSecsSinceEpoch();
qDebug() << "Current Timestamp:" << timestamp;
0 条评论