From Clomosy Docs
No edit summary |
ClomosyAdmin (talk | contribs) No edit summary |
||
| 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:|description=Efficiently convert hours, minutes, seconds and milliseconds into a single time format for streamlined data processing with EncodeTime in Clomosy.}} | |||
Revision as of 14:49, 23 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