Crestron simpl plus language ref 사용자 설명서

다운로드
페이지 374
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