1時間後の00分と現在時刻の差分抽出 --- dt_now = https://ift.tt/37EcXY1 tafh = dt_now + datetime.timedelta(hours=1) soh = (tafh.strftime('%Y-%m-%d %H:00:%S')) onehour_after = datetime.datetime.strptime(soh, '%Y-%m-%d %H:%M:%S') delta = onehour_after - dt_now print(delta) ---
1時間後の00分と現在時刻の差分抽出
— うひーマン (@norikoni) January 30, 2020
---
dt_now = https://t.co/7OaT5Uxt6G()
tafh = dt_now + datetime.timedelta(hours=1)
soh = (tafh.strftime('%Y-%m-%d %H:00:%S'))
onehour_after = datetime.datetime.strptime(soh, '%Y-%m-%d %H:%M:%S')
delta = onehour_after - dt_now
print(delta)
---
from Twitter https://twitter.com/norikoni
January 30, 2020 at 10:48AM
via IFTTT
コメント
コメントを投稿