python计算时间差
作者:高景洋 日期:2020-12-03 16:12:14 浏览次数:2001
a = '2020-10-13 16:58:40'
last_time = datetime.datetime.strptime(a,'%Y-%m-%d %H:%M:%S')
seconds_diff = (datetime.datetime.now()-last_time).total_seconds()
minutes_diff = seconds_diff / 60
本文永久性链接:
<a href="http://r4.com.cn/art165.aspx">python计算时间差</a>
<a href="http://r4.com.cn/art165.aspx">python计算时间差</a>
当前header:Host: r4.com.cn
X-Host1: r4.com.cn
X-Host2: r4.com.cn
X-Host3: 127.0.0.1:8080
X-Forwarded-For: 3.144.255.198
X-Real-Ip: 3.144.255.198
X-Domain: r4.com.cn
X-Request: GET /art165.aspx HTTP/1.1
X-Request-Uri: /art165.aspx
Connection: close
Accept: */*
User-Agent: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Accept-Encoding: gzip, br, zstd, deflate