标签: python-arrow

Python 箭头毫秒

我想弄清楚一件简单的事情 - 如何将arrow.Arrow对象转换为毫秒。我正在阅读以下线程,但我仍然不清楚如何以毫秒为单位获得一个长数字。

我想要这样的东西:

def get_millis(time: arrow.Arrow):
     ... some magic goes here ...


print(get_millis(time))     
OUTPUT: 
1518129553227 
Run Code Online (Sandbox Code Playgroud)

谢谢

python python-arrow

5
推荐指数
2
解决办法
4036
查看次数

标签 统计

python ×1

python-arrow ×1