python datetime操作
程序员文章站
2022-03-20 19:14:22
#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())