📜  python比较时间戳 - Python代码示例

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

代码示例2
# importe datetime
from datetime import datetime

# create two datetime
before = datetime(2010, 12, 27, 14, 39, 19, 700401)
after = datetime.now()

# test
if(before>after):
  ...
if(before