网站浏览器兼容问题,南宁工程造价建设信息网站,行业门户网站制作,深圳做网站找谁基础
QDateTime::currentDateTime() //当前的日期和时间。
QDateTime::toString() //以特定的格式输出时间#xff0c;格式
yyyy: 年份#xff08;4位数#xff09;
MM: 月份#xff08;两位数#xff0c;07表示七月#xff09;
dd: 日期#xff08;两位数#xff0c…基础
QDateTime::currentDateTime() //当前的日期和时间。
QDateTime::toString() //以特定的格式输出时间格式
yyyy: 年份4位数
MM: 月份两位数07表示七月
dd: 日期两位数01表示第一天
hh: 小时两位数24小时制
mm: 分钟两位数
ss: 秒钟两位数案列
QString curTime QDateTime::currentDateTime().toString(yyyy_MM_dd hh_mm_ss);//yyyy-MM-dd hh:mm:ss
//输出效果类似于 2023-11-30 07:51:44。效果