s=
time.
localtime(
12323.0)
print(
time.strftime(
'%Y-%m-%d %H:%M:%S',
s))
c=
time.strptime(
'1970-01-01 11:25:23',
'%Y-%m-%d %H:%M:%S')
print(
time.mktime(c))
时间戳 <=======> struct时间对象 <=======> 本地时间字符串
转载请注明原文地址: https://www.6miu.com/read-2632254.html