User Guide

Crestron SIMPL+
®
Software
Language Reference Guide - DOC. 5797G SIMPL+
®
z 249
GETMONTHNUM
Name:
GetMonthNum
Syntax:
INTEGER GetMonthNum();
Description:
Returns an integer corresponding to the current month of the year.
Parameters:
None.
Return Value:
The month of the year as an integer from 1 to 12.
Example:
INTEGER NumMonth;
FUNCTION MAIN()
{
NumMonth = GetMonthNum();
PRINT(“The current month of the year is %d\n”, NumMonth);
}
An example output of this would be “The current month of the year is 9”.
Version:
SIMPL+ Version 1.00