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