现在,我想将Python中的tim时间戳()转换为JS中的时间戳()。但问题是Python使用秒,而JS使用毫秒。如何将Python的版本转换为JS?例如:
您知道如何将Python的版本转换到JS中吗?顺便说一句,请不要说python_stamp*1000,基本上,这不是我想找到的解决方案。
发布于 2016-12-09 03:21:40
下面是几个获得毫秒的例子
from datetime import datetime
print int(datetime.now().strftime("%s%f"))/1000例2
from time import time
print time() #1481253947.930211
print int(time()*1000) # 1481253947930https://stackoverflow.com/questions/41052345
复制相似问题