import time

#Author: Administrator
#Date: 2019/7/9 - 11:21

import time

# print(help(time))
#print(time.time()) #时间戳
# time.sleep(3) #延时3s
# print(time.perf_counter())#显示cpu工作时间
# print(time.gmtime())
# struct_time = time.localtime() #本地时间
# print(time.strftime('%Y-%m-%d-%H:%M:%S',struct_time)) #字符串时间:******
# print(time.strptime('2019-07-09-13:08:26','%Y-%m-%d-%H:%M:%S'))
#
# a = time.strptime('2019-07-09-13:08:26','%Y-%m-%d-%H:%M:%S')
# print(a.tm_year)
# print(a.tm_mday)
# print(a.tm_wday)

#时间戳,结构化时间,格式化时间

# print(time.ctime()) #Tue Jul 9 13:21:12 2019
# print(time.ctime(3600))
#
# # print(help(time.mktime))
# print(time.mktime(time.localtime()))#转化时间戳
# print(time.time())

import datetime
print(datetime.datetime.now())

posted @ 2019-07-09 13:39  python小白丶  阅读(735)  评论(0)    收藏  举报