SecondsBetween
Coldpeer
SecondsBetween
Moduł: DateUtils
program FooApp;
{$APPTYPE CONSOLE}
uses
SysUtils, DateUtils;
var
A, B : TDateTime;
Result : Int64;
begin
A := Now;
B := EncodeDate(2007, 06, 10);
Result := SecondsBetween(A, B);
Writeln('Różnica sekund: ' + IntToStr(Result));
Readln;
end.
Zobacz też: