Gethournum - Crestron SIMPL+ Reference Manual

Language reference guide
Hide thumbs Also See for SIMPL+:
Table of Contents

Advertisement

Software
®
246
SIMPL+

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
Crestron SIMPL+
Language Reference Guide - DOC. 5797G
®

Advertisement

Table of Contents
loading

Table of Contents