STD.Date.TimeFromParts( hour, minute, second )
hour | An INTEGER1 hour value in the range 0 to 23. |
minute | An UNSIGNED1 minute value in the range 0 to 59. |
second | An UNSIGNED1 second value in the range 0 to 59. |
Return: | TimeFromParts returns a Time_t (An UNSIGNED3 holding a time of day in the decimal form HHMMDD.) |
The TimeFromParts function returns a Time_t value from the hour, minute, and second parameters.
Example:
IMPORT STD; UNSIGNED1 MyHour := 23; UNSIGNED1 MyMinute := 59; UNSIGNED1 MySecond := 50; T := STD.Date.TimeFromParts(MyHour,MyMinute,MySecond); //T contains 235950