ex21.pp 283 B

123456789101112131415161718
  1. Program Example21;
  2. { This program demonstrates the StrToTime function }
  3. Uses sysutils;
  4. Procedure TestStr (S : String);
  5. begin
  6. Writeln (S,' : ',TimeToStr(StrToTime(S)));
  7. end;
  8. Begin
  9. teststr (TimeToStr(Time));
  10. teststr ('12:00');
  11. teststr ('15:30');
  12. teststr ('3:30PM');
  13. End.