python 时间元组转时间戳

 

#!/usr/bin/python
# -*- coding: UTF-8 -*-
import time
print(time.mktime((2018, 9, 30, 9, 44, 31, 6, 273, 0)))

输出

1538271871.0

 

posted @ 2019-01-04 11:17  anobscureretreat  阅读(324)  评论(0)    收藏  举报