How does one check for a certain local time and do something when that time arrives in Python? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How does one check for a certain local time and do something when that time arrives in Python?

I'm writing a bot in discord.py and want to (for example) shut down the bot at a certain time. I know how to shut it down and all that, but idk how to check for a certain time... Does that heavily tax the machine the code is running on to check that often?

22nd Aug 2018, 5:39 AM
Tranker101
Tranker101 - avatar
1 Answer
0
time module.
22nd Aug 2018, 5:58 AM
Markus Kaleton
Markus Kaleton - avatar