EasyManua.ls Logo

Crestron SIMPL+ - GETDAYOFWEEKNUM 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...
Crestron SIMPL+
®
Software
Language Reference Guide - DOC. 5797G SIMPL+
®
z 245
GETDAYOFWEEKNUM
Name:
GetDayOfWeekNum
Syntax:
INTEGER GetDayOfWeekNum();
Description:
Returns an integer corresponding to the current day of the week.
Parameters:
None.
Return Value:
The day of the week as an integer from 0 to 6; 0 represents Sunday to 6 representing
Saturday.
Example:
INTEGER NumDayOfWeek;
FUNCTION MAIN()
{
NumDayOfWeek = GetDayOfWeekNum();
PRINT(“The current day of the week is %d\n”, NumDayOfWeek);
}
An example output of this would be “The current day of the week is 4”.
Version:
SIMPL+ Version 1.00

Table of Contents