Ver Mensaje Individual
  #3  
Antiguo 26-10-2007
fidel fidel is offline
Miembro
 
Registrado: mar 2005
Posts: 381
Reputación: 20
fidel Va por buen camino
Mira a ver así:

Código Delphi [-]
procedure TForm1.Button1Click(Sender: TObject);
var
  minutos, segundos, segundosResto: Int64;
  momento1, momento2: Tdatetime;
begin
  momento1 := strtodatetime('20/10/07 22:30:10');
  momento2 := now;
  segundos := SecondsBetween(momento1,momento2);
  minutos := segundos div 60;
  segundosResto := segundos mod 60;
  Edit1.Text := IntToStr(minutos) + ' minutos y ' + IntToStr(segundosResto) + 'segundos';
end;

Última edición por fidel fecha: 26-10-2007 a las 14:24:50.
Responder Con Cita