python中时间戳的使用
import time
x = '2019/9/5'
# change the string time into binlog time
time.mktime(time.strptime(x, '%Y/%m/%d'))
y = 1567612800
# change the binlog time into string
time.strftime("%Y-%m-%d", time.localtime(y))
统计运行时间
start = time.time()
run_fun()
end = time.time()
print end-start