python 时间元组转可视化时间

 

>>> import time
>>> time.asctime()
'Fri Jan  4 11:17:20 2019'
>>> time.asctime((2018, 9, 30, 9, 44, 31, 6, 273, 0))
'Sun Sep 30 09:44:31 2018'
>>> time.asctime(time.localtime(1538271871.226226))
'Sun Sep 30 09:44:31 2018'
>>> 

 

posted @ 2019-01-04 11:19  anobscureretreat  阅读(395)  评论(0编辑  收藏  举报