Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用下面的语句来显示时间。
Qt.formatTime(new Date(),"hh:mm:AP")
是否可以以 24 小时格式显示时间。如果是这样怎么做?
我得到了以下 24 小时格式的声明显示时间的答案:
Qt.formatTime(new Date(),"H:m: a")