ex22.pp 392 B

1234567891011121314151617
  1. Program Example22;
  2. { This program demonstrates the SystemTimeToDateTime 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. Writeln ('Converted : ',DateTimeToStr(SystemTimeToDateTime(ST)));
  13. End.