我正在尝试获取两个日期时间之间的差异,但是我不知道为什么在尝试获取微秒时却得到0:
from dateutil.parser import parse
x = parse("2019-03-25T17:33:08.829-03:00")
y = parse("2019-03-25T18:07:08.829-03:00")
result = y - x
print(result.microseconds) // prints 0
Run Code Online (Sandbox Code Playgroud)
尝试: Python-时差(以毫秒为单位)不适用于我, 并且 Python速度测试-时差(以毫秒为单位)
没有运气。
我在这里做错了什么?
| 归档时间: |
|
| 查看次数: |
63 次 |
| 最近记录: |