currentdatetime专题

QT 中 QDateTime::currentDateTime() 输出格式备查

基础 QDateTime::currentDateTime() //当前的日期和时间。QDateTime::toString() //以特定的格式输出时间, 格式 yyyy: 年份(4位数)MM: 月份(两位数,07表示七月)dd: 日期(两位数,01表示第一天)hh: 小时(两位数,24小时制)mm: 分钟(两位数)ss: 秒钟(两位数) 案列 QString curT