SecondSpan
Coldpeer
SecondSpan
Moduł: DateUtils
program FooApp;
{$APPTYPE CONSOLE}
uses
SysUtils, DateUtils;
var
Foo : Double;
Bar : Integer;
begin
Foo := SecondSpan(Now, EncodeDate(2006, 06, 30));
Bar := SecondsBetween(Now, EncodeDate(2006, 06, 30));
Writeln('Różnica w sekundach: ' + FloatToStr(Foo));
Writeln('Różnica w sekundach: ' + IntToStr(Bar));
Readln;
end.
Zobacz też: