time
import time
# 1970.1.1
# t1 = time.time()
# print(t1)
# time.sleep(2)
# t2 = time.time()
# print(t2)
# local 本地的 localtion
t1 = time.localtime()
# print(t1)
# week day 0 1 2 3 4 5
# year day
# isdst 夏令时 在暑期将时间调快一个小时
# 年月日时分秒 2019-11-30 2011;1:11
print(time.strftime("%y-%m-%d %H:%M:%S",t1))
print(time.strftime("%B %A %H:%M",t1))
calendar
import calendar as c
cal = c.month(2019,12)
cal2 = c.calendar(9012)
print(cal2)