📅  最后修改于: 2022-03-11 14:45:03.304000             🧑  作者: Mango
# 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