Python execution waiting program knows the zero point of the next day

From , 3 Years ago, written in Python, viewed 229 times.
URL https://pastebin.vip/view/f1507aba
  1. def waitToTomorrow():
  2.     """Wait to tommorow 00:00 am"""
  3.  
  4.     tomorrow = datetime.datetime.replace(datetime.datetime.now() + datetime.timedelta(days=1),
  5.                          hour=0, minute=0, second=0)
  6.     delta = tomorrow - datetime.datetime.now()
  7.     time.sleep(delta.seconds)
  8. #//python/8317

Reply to "Python execution waiting program knows the zero point of the next day"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website