import datetime
import time
time = df['location_time'][0]
time = datetime.datetime.strptime(time,"%Y-%m-%d %H:%M:%S")
time1 = df['location_time'][1]
time1 = datetime.datetime.strptime(time1,"%Y-%m-%d %H:%M:%S")
print(time)
print(type(time))
print(time1)
print(type(time1))
print(time1-time)
python时间日期转换为秒
最新推荐文章于 2024-10-12 11:33:36 发布