From Clomosy Docs
function TimeToStr(Time TclDateTime):string;
The TimeToStr function converts a TclDateTime value Time into a formatted time string. The time is formatted using the LongTimeFormat value, which in turn uses the TimeSeparator value.
Example:
- Base Syntax
var myTime : TclDateTime;
begin
myTime := StrToTime('15:22:35'); ShowMessage('myTime = '+TimeToStr(myTime));
end;
- TRObject Syntax
var
myTime : TclDateTime;
{
myTime = StrToTime('15:22:35');
ShowMessage('myTime = '+TimeToStr(myTime));
}
Output:
myTime = 15:22:35