From Clomosy Docs
ClomosyAdmin (talk | contribs) No edit summary |
ClomosyAdmin (talk | contribs) No edit summary |
||
| Line 23: | Line 23: | ||
<h2> See Also </h2> | <h2> See Also </h2> | ||
* [[System_Library#Type_Conversion_Functions | Type Conversion Functions]] | * [[System_Library#Type_Conversion_Functions | Type Conversion Functions]] | ||
{{#seo:|title=TimeToStr Using in Clomosy - Clomosy Docs}} | |||
{{#seo:|description=Convert TclDateTime values into formatted time strings with TimeToStr. Learn how to use this function with examples for efficient time handling!}} | {{#seo:|description=Convert TclDateTime values into formatted time strings with TimeToStr. Learn how to use this function with examples for efficient time handling!}} | ||
Latest revision as of 14:06, 24 December 2024
function TimeToStr(const S:TclDateTime):string;
The TimeToStr function converts a TclDateTime value S into a formatted time string. The time is formatted using the LongTimeFormat value, which in turn uses the TimeSeparator value.
Example
var
myTime : TclDateTime;
{
myTime = StrToTime('15:22:35');
ShowMessage('myTime = '+TimeToStr(myTime));
}
Output:
myTime = 15:22:35