ex5.pp 323 B

12345678910111213141516
  1. Program Example5;
  2. { This program demonstrates the DateTimeToSystemTime function }
  3. Uses sysutils;
  4. Var ST : TSystemTime;
  5. Begin
  6. DateTimeToSystemTime(Now,ST);
  7. With St do
  8. begin
  9. Writeln ('Today is ',year,'/',month,'/',Day);
  10. Writeln ('The time is ',Hour,':',minute,':',Second,'.',MilliSecond);
  11. end;
  12. End.