import time
time.time()#浮点数
time.localtime()#数据结构
time.asctime(time.localtime()) #转换为ascii码字符串
time.strftime('%Y-%m-%d %H:%M:%S',time.localtime())
import calendar
print(calendar.month(2018,5))