0

Set the time python3

How do I set up a message every midnight?

3rd Oct 2018, 1:23 PM
โล' เล
โล' เล - avatar
1 Resposta
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
6th Oct 2018, 4:13 AM
Steven M
Steven M - avatar