Hour

STD.Date.Hour( time )

timeA time value in the Time_ format.
Return:Hour returns an INTEGER value representing the hour in the range of 0-23.

The Hour function returns the hour from the time value.

Example:

IMPORT STD;
MyTime:= STD.Date.CurrentTime(TRUE);   //Local Time
  
t1 := STD.Date.Hour(MyTime);
    //t1 contains the hour of the current local time