fpc/docs/linuxex/ex60.pp
2000-05-18 20:31:02 +00:00

14 lines
292 B
ObjectPascal

Program Example6;
{ Program to demonstrate the GetDateTime function. }
Uses linux;
Var Year, Month, Day, Hour, min, sec : Word;
begin
GetDateTime (Year, Month, Day, Hour, min, sec);
Writeln ('Date : ',Day:2,'/',Month:2,'/',Year:4);
Writeln ('Time : ',Hour:2,':',Min:2,':',Sec:2);
end.