Description |
The TimeToStr function converts a TDateTime value Time into a formatted time string.
The time is formatted using the LongTimeFormat value, which in turn uses the TimeSeparator value.
Version 2 of this function is for use within threads. You furnish the FormatSettings record before invoking the call. It takes a local copy of global formatting variables that make the routine thread safe.
|
|
Related commands |
|
|
|
Example code : Converting a time value to a string |
var
myTime : TDateTime;
begin
myTime := StrToTime('15:22:35');
WriteLn('myTime = '+TimeToStr(myTime));
end;
|
Show full unit code |
myTime = 15:22:35
|
|