fpc/docs/sysutex/ex21.pp
1999-05-13 21:49:26 +00:00

18 lines
283 B
ObjectPascal

Program Example21;
{ This program demonstrates the StrToTime function }
Uses sysutils;
Procedure TestStr (S : String);
begin
Writeln (S,' : ',TimeToStr(StrToTime(S)));
end;
Begin
teststr (TimeToStr(Time));
teststr ('12:00');
teststr ('15:30');
teststr ('3:30PM');
End.