“不”是什么意思Qt.ISODate日期输出?

2024-06-16 10:13:58 发布

您现在位置:Python中文网/ 问答频道 /正文

我有一个很简单的问题 这是我代码的一部分

now = QDateTime.currentDateTime()
# print('Local datetime: ', now.toString())
print('Local datetime: ', now.toString(Qt.ISODate))

输出为:

Local datetime:  2018-03-21T13:38:33

我的问题是,输出之间的‘T’是什么意思?你知道吗


Tags: 代码datetimelocalqtnowprinttostringisodate
1条回答
网友
1楼 · 发布于 2024-06-16 10:13:58

"T"表示iso8601标准中时间戳的开始。你知道吗

MoreInfo

从Wiki:

A single point in time can be represented by concatenating a complete date expression, the letter T as a delimiter, and a valid time expression. For example, "2007-04-05T14:30".

相关问题 更多 >