fpc/tests/test/textpas01.pp
florian 70b8789262 o basic extended pascal support:
+ automatically loaded helper unit
  * Makefiles adapted
  * mode switch
  * mode switches reorganized
+ TimeStamp support

git-svn-id: trunk@32330 -
2015-11-15 15:13:36 +00:00

23 lines
350 B
ObjectPascal

{$mode extendedpascal}
var
ts : TimeStamp;
begin
{ just test if the functions exist }
GetTimeStamp(ts);
if ts.DateValid then
begin
writeln(ts.year);
writeln(ts.month);
writeln(ts.day);
end;
if ts.TimeValid then
begin
writeln(ts.hour);
writeln(ts.minute);
writeln(ts.second);
end;
end.