popexizhi
富足,平衡,接受自己,三斗计划,享受心流的乐趣
html tool
2020年7月7日星期二
转:python将秒数转化为时间格式
https://blog.csdn.net/xiaoQL520/article/details/78435175
# time.time() To %Y-%m-%d %H:%M:%S
timeArray = time.localtime(1462482700)#秒数
otherStyleTime = time.strftime("%Y-%m-%d %H:%M:%S", timeArray)
print(otherStyleTime)
没有评论:
发表评论
较新的博文
较早的博文
主页
订阅:
博文评论 (Atom)
没有评论:
发表评论