import datetime
t = datetime.datetime.now()
d = t - t.utcfromtimestamp(0)
print d.days * 24 * 60 * 60 * 1000 + d.seconds * 1000 + d.microseconds
import datetime
t = datetime.datetime.now()
d = t - t.utcfromtimestamp(0)
print d.days * 24 * 60 * 60 * 1000 + d.seconds * 1000 + d.microseconds
本文标题:python获取毫秒级unix时间是戳
本文链接:https://www.haomeiwen.com/subject/ytkzyxtx.html
网友评论