且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

python2中的python3 datetime.timestamp?

更新时间:2021-09-10 04:55:32

在python 2中使用以下方法转换为时间戳

use the following to convert to a timestamp in python 2

int((mod_time.mktime(first_run.timetuple())+first_run.microsecond/1000000.0))