Código Delphi [-]procedure Hora_restante; //Muestra la hora restante var b: ttime; begin b:= EncodeTime( (StrtoInt(hora.Text)), (StrtoInt(minuto.Text)), (StrtoInt(segundo.Text)), (StrtoInt(msegundo.Text))); label3.caption:= IntToStr(HoursBetween(Now, b)); end;
procedure Hora_restante; //Muestra la hora restante var b: ttime; begin b:= EncodeTime( (StrtoInt(hora.Text)), (StrtoInt(minuto.Text)), (StrtoInt(segundo.Text)), (StrtoInt(msegundo.Text))); label3.caption:= IntToStr(HoursBetween(Now, b)); end;