From Clomosy Docs
No edit summary |
ClomosyAdmin (talk | contribs) No edit summary |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 11: | Line 11: | ||
<b>Example</b><br> | <b>Example</b><br> | ||
<pre> | <pre> | ||
var | var | ||
| Line 21: | Line 20: | ||
ShowMessage('Date set to '+TimeToStr(myDate)); | ShowMessage('Date set to '+TimeToStr(myDate)); | ||
} | } | ||
</pre> | </pre> | ||
| Line 41: | 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
function EncodeTime(Hour, Min, Sec, MSec: Word):TclDateTime;
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:
Time set to 12:50:40