Ver Mensaje Individual
  #4  
Antiguo 13-08-2007
Avatar de cHackAll
[cHackAll] cHackAll is offline
Baneado?
 
Registrado: oct 2006
Posts: 2.159
Reputación: 20
cHackAll Va por buen camino
Creo que un Segundos := Trunc(Now * SecsPerDay), TTimeStamp es una estructura de dos enteros, uno son los días, el otro:

Código Delphi [-]
var ts: TTimeStamp; Segundos: Integer;
begin
 ts := DateTimeToTimeStamp(Now);
 Segundos := (ts.Date * SecsPerDay) + (ts.Time div MSecsPerSec);
end;
Responder Con Cita