Set the time python3 | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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