0
Set the time python3
How do I set up a message every midnight?
1 Answer
0
import time
localtime=time.localtime()
hour=localtime[3]
minute=localtime[4]
second=localtime[5]
while True:
if hour==0 and minute==0 and second==0:
print('ALARM')
break