Crestron simpl plus language ref 사용자 설명서

다운로드
페이지 374
Software Crestron 
SIMPL+
®
246 
z SIMPL+
®
Language Reference Guide - DOC. 5797G
GETHOURNUM
Name:
GetHourNum
Syntax:
INTEGER GetHourNum();
Description:
Returns an integer corresponding to the number of hours in the current time.
Parameters:
None.
Return Value:
The number of hours from 0 to 23 (24-hour time format).
Example:
INTEGER NumHours;
 
FUNCTION MAIN()
{
NumHours = GetHourNum();
PRINT(“The Number of hours on the clock is %d\n”, NumHours);
}
An example output of this would be “The Number of hours on the clock is 22”.
Version:
SIMPL+ Version 1.00