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()
def mostraData(self): rel = relogio() diaAtual = rel.pegaHoraData() print(diaAtual.strftime('%d/%m/%y'))
def mostraHora(self): rel = relogio() diaAtual = rel.pegaHoraData() print(diaAtual.strftime('%H:%M:%S'))