EasyManua.ls Logo

Crestron SIMPL+ - GETHOURNUM Function

Crestron SIMPL+
374 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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

Table of Contents