From Clomosy Docs

Revision as of 13:36, 28 February 2023 by ClomosyManager (talk | contribs) (Created page with " 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.<br> '''Example:'''<br> '''var''' myTime : TclDateTime;<br> '''begin'''<br> myTime := StrToTime('15:22:35'); ShowMessage('myTime = '+TimeToStr(myTime));<br> '''end;''' '''Output:'''<br> myTime = 15:22:35")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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:

var
  myTime : TclDateTime;
begin
myTime := StrToTime('15:22:35'); ShowMessage('myTime = '+TimeToStr(myTime));
end;

Output:

myTime = 15:22:35