mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 12:09:30 +02:00
18 lines
283 B
ObjectPascal
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. |