예제 #1
0
 def aguardaAlarme(self,hora):
     alam = alarme()
     rel = relogio()
     horaProgramada = alam.programaAlarme(hora)
     horaAtual = rel.pegaHoraData().strftime('%H:%M:%S')
     while(horaProgramada!=horaAtual):
         horaAtual = rel.pegaHoraData().strftime('%H:%M:%S')
     alam.tocaAlarme()
예제 #2
0
 def mostraData(self):
     rel = relogio()
     diaAtual = rel.pegaHoraData()
     print(diaAtual.strftime('%d/%m/%y'))
예제 #3
0
 def mostraHora(self):
     rel = relogio()
     diaAtual = rel.pegaHoraData()
     print(diaAtual.strftime('%H:%M:%S'))