delay a task until certain time

后端 未结 8 2058
梦谈多话
梦谈多话 2021-01-11 11:59

What I want to do in a python script is sleep a number of seconds until the required time is reached. IE: if runAt setting is 15:20 and current time is 10:20, how can I wor

8条回答
  •  日久生厌
    2021-01-11 12:10

    Instead of using the function sleep(X), you can also use to a Timer

    It depends on what you're planning to do.

提交回复
热议问题