# !/usr/bin/env python
# -*- coding:utf-8 -*-
# author : sjs

import time
# print(help(time))
# print(time.time())    # 时间戳
# time.sleep(3)
# print(time.clock())  # 3.8会被移除 计算CPU计算时间
# print(time.process_time())

# print(time.gmtime()) # 机构化时间

# print(time.localtime()) #结构化的本地时间

# a = time.strftime('%Y-%m-%d %H:%M:%S')
# print(a)  # 格式化的本地时间
# b = time.strptime(a,'%Y-%m-%d %H:%M:%S')  # 反结构化时间
# print(b.tm_year)
# print(b.tm_mon)
#
# print(time.ctime())  # 本地时间的另外一种表达形式

# print(time.mktime(time.localtime()))  # 本地时间转换为时间戳
# 
# import datetime
# print(datetime.datetime.now())
# print(datetime.datetime.timestamp())