QDateTime utcTime = QDateTime::fromString(qstrTime, "MM/dd HH:mm:ss");
if (utcTime.isValid()) {
utcTime.setTimeSpec(Qt::UTC); // 将 时间 设置为 UTC 时间
qstr = utcTime.toLocalTime().toString("MM/dd HH:mm:ss");
}
03-30
340
08-10
981
05-16
132
07-09
07-09
07-09
06-10
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交