ex60.pp 292 B

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