We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c4aa69 commit a4f598fCopy full SHA for a4f598f
tools/date.py
@@ -143,6 +143,9 @@ def test():
143
print datetime.datetime.strptime('2016-06-06 12:34:54', "%Y-%m-%d %H:%M:%S")
144
# print datetime.datetime.strptime('2016-06', "%Y-%m-%d %H:%M:%S") # 异常ValueError
145
146
+ # 显示毫秒
147
+ print datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S.%f')
148
+
149
150
if __name__ == "__main__":
151
test()
0 commit comments