Getdayofweeknum - Crestron SIMPL+ Reference Manual

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

Advertisement

Crestron SIMPL+
Language Reference Guide - DOC. 5797G
®

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
Software
®
SIMPL+
245

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SIMPL+ and is the answer not in the manual?

Questions and answers

Table of Contents

Save PDF