From Clomosy Docs

No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 29: Line 29:
<h2> See Also </h2>
<h2> See Also </h2>
* [[System_Library#Date_and_Time_Functions | Date and Time Functions]]
* [[System_Library#Date_and_Time_Functions | Date and Time Functions]]
{{#seo:|title=EncodeTime in Clomosy - Clomosy Docs}}
{{#seo:|description=Efficiently convert hours, minutes, seconds and milliseconds into a single time format for streamlined data processing with EncodeTime in Clomosy.}}

Latest revision as of 13:09, 24 December 2024

The EncodeTime function generates a TclDateTime return value from the passed Hour, Min, Sec and MSec (millisecond) values.
The permitted parameter values are :
Hour = 0..23
Min = 0..59
Sec = 0..59
MSec = 0..999

Example

 var
   myDate : TclDateTime;
 
 {
   // Set my date variable using the EncodeTime function
   myDate = EncodeTime(12, 50, 40, 231);
   ShowMessage('Date set to '+TimeToStr(myDate));
 }

Output:

See Also