pyqt时间格式化

pyqt时间格式化

 

from PyQt5.QtCore import QDateTime

currentDateTime = QDateTime.currentDateTime()
print(currentDateTime.toString("yyyy-MM-dd hh:mm:ss"))

 

 

######################

posted @ 2023-03-29 14:42  西北逍遥  阅读(79)  评论(0编辑  收藏  举报