What do you want to save?
Add Code snippet
New code examples
-
Python 2021-11-20 14:32:21
python run things at certain datetimes
import datetime as DT import time while True: now = DT.datetime.now() target = DT.datetime.combine(DT.date.today(), DT.time(hour=8)) if target < now: target += DT.timedelta(days=1) time.sleep((target-now).total_seconds()) ... Add solution