t1=datetime(2018,4,13)
t2=datetime.now()
print(type(t2-t1))
print("seconds",(t2-t1).seconds)
print("days",(t2-t1).days)
# print("hour",(t2-t1).hour)#没有hour,minute
t1=datetime(2018,4,13)
t2=datetime.now()
print(type(t2-t1))
print("seconds",(t2-t1).seconds)
print("days",(t2-t1).days)
# print("hour",(t2-t1).hour)#没有hour,minute