python datetime操作
程序员文章站
2022-07-05 14:17:21
#datetime object转化为timestamp import datetime now = datetime.datetime.now() now_timestamp = time.mktime(now.timetuple()) ......
#datetime object转化为timestamp
import datetime
now = datetime.datetime.now()
now_timestamp = time.mktime(now.timetuple())