mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-11-04 05:39:29 +01: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. |