📜  python datetime 减去 datetime - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:41.493000             🧑  作者: Mango

代码示例2
from datetime import datetime

birthday = datetime(1988, 2, 19, 12, 0, 0)
diff = datetime.now() - birthday
print diff
# 8954 days, 7:03:45.765329