获得当前时间的年份
datetime.date.today().year
现在时间设置过期时间,设置 30 天过期
datetime.datetime.now() + datetime.timedelta(days=30)
获取时间戳
time = datetime.datetime.now() + datetime.timedelta(days=30)
print(time.timestamp())
datetime.date.today().year
datetime.datetime.now() + datetime.timedelta(days=30)
time = datetime.datetime.now() + datetime.timedelta(days=30)
print(time.timestamp())