当前位置:网站首页>Common date formatter and QT method for obtaining current time
Common date formatter and QT method for obtaining current time
2022-06-24 08:30:00 【Pepsi__】
Common date formatter and its meaning :
| character | significance |
|---|---|
| yy | year , Two digit display ,00-99 |
| yyyy | year , Four digit display , Such as 2016 |
| M | month , Display without zero padding ,1-12 |
| MM | month , Zero filling display ,01-12 |
| d | God , Display without zero padding ,1-31 |
| dd | God , Zero filling display ,01-31 |
| h | Hours , No zeros ,0-23 or 1-12( If it shows AM/PM) |
| hh | Hours , Zero compensation 2 Bit display ,00-23 or 01-12( If it shows AM/PM) |
| H | Hours , No zeros ,0-23 or 1-12( Even if it shows AM/PM) |
| HH | Hours , Zero compensation 2 Bit display ,00-23 or 01-12( Even if it shows AM/PM) |
| m | minute , No zeros ,0-59 |
| mm | minute , Zero filling display ,00-59 |
| z | millisecond , No zeros ,0-999 |
| zzz | millisecond , Zero compensation 3 Bit display ,000-999 |
| AP or A | Use AM/PM Show |
| ap or a | Use am/pm Show |
Text conversion date :
QDateTime dateTime = QDateTime::fromString("2022/06/23 23:05:24","yyyy/MM/dd hh:mm:ss");
Date conversion text :
QString timeStr = QDateTime::currentDateTime().toString("yyyy year MM month dd Japan hh when mm branch ss second ");
QString timeStr1 = dateTime.toString("yyyy year MM month dd Japan hh when mm branch ss second ");
边栏推荐
- 2021-03-11 comp9021 class 8 notes
- PAT 1157:校庆
- For a detailed explanation of flex:1, flex:1
- Question bank and simulation examination for operation certificate of refrigeration and air conditioning equipment in 2022
- os. path. Pits encountered during the use of join()
- ZUCC_编译语言原理与编译_实验02 FSharp OCaml语言
- June 27, 2021: given a positive array arr, it represents the weight of several people
- Promise的使用场景
- Nodejs redlock notes
- Promise usage scenarios
猜你喜欢

RCNN、Fast-RCNN、Faster-RCNN介绍

根据网络上的视频的m3u8文件通过ffmpeg进行合成视频

独立站运营中如何提升客户留存率?客户细分很重要!

2021-03-11 COMP9021第八节课笔记

权限模型 DAC ACL RBAC ABAC

Permission model DAC ACL RBAC ABAC

WCF TCP protocol transmission

问题3 — messageBox弹框,修改默认背景色

1279_ Vsock installation failure resolution when VMware player installs VMware Tools

2021-03-11 comp9021 class 8 notes
随机推荐
[ACNOI2022]不是构造,胜似构造
Search and recommend those things
Question bank and simulation examination for operation certificate of refrigeration and air conditioning equipment in 2022
13 -- 移除无效的括号
Markdown 实现文内链接跳转
SQL intra statement operation
Several ways you can't move zero (sequel)
Understanding of the concept of "quality"
ZUCC_编译语言原理与编译_实验05 正则表达式、有限自动机、词法分析
51 single chip microcomputer_ External interrupt and timer / Counter interrupt
A preliminary study of IO model
LabVIEW finds prime numbers in an array of n elements
Maya re deployment
Teach you how to use the reflect package to parse the structure of go - step 1: parameter type check
ZUCC_编译语言原理与编译_实验02 FSharp OCaml语言
[ACNOI2022]做过也不会
【毕业季】你好陌生人,这是一封粉色信笺
2022年制冷与空调设备运行操作上岗证题库及模拟考试
独立站运营中如何提升客户留存率?客户细分很重要!
Utilisation de la fermeture / bloc de base SWIFT (source)