import datetime
import time
print(time.time())
print(time.localtime())
print(time.strftime('%Y-%m-%d %H:%M:%S'))
print('#####################')
print(datetime.datetime.now())
new_time = datetime.timedelta(minutes=10)
print(datetime.datetime.now()+new_time)
print('#####################')
one_day = datetime.datetime(2008, 5, 27)
new_date = datetime.timedelta(days=10)
print(one_day+new_date)
# 输出
1595567284.4537988
time.struct_time(tm_year=2020, tm_mon=7, tm_mday=24, tm_hour=13, tm_min=8, tm_sec=4, tm_wday=4, tm_yday=206, tm_isdst=0)
2020-07-24 13:08:04
#####################
2020-07-24 13:08:04.453875
2020-07-24 13:18:04.453895
#####################
2008-06-06 00:00:00