wday — current week day.

Description:

u8 wday();

Returns the current week day.

Return values:

Returns the current week day starting from Sunday (Sunday is 0).

Example:

<item addr="524:248" name="Test for wday function" type="script">
V-ID/V-ADDR 
{
	if(opt0()) 
	{
		u8 Wday = wday();
		u8 strForMess[70] = {1, "Today "}; 

		if(Wday == 0) 
			strcat(strForMess, "Sunday!");

		if(Wday == 1) 
			strcat(strForMess, "Monday!");

		if(Wday == 2)
			strcat(strForMess, "Tuesday!");
	
		if(Wday == 3)
			strcat(strForMess, "Wednesday!");

		if(Wday == 4) 
			strcat(strForMess, "Thursday!");

		if(Wday == 5) 
			strcat(strForMess, "Friday!");

		if(Wday == 6) 
			strcat(strForMess, "Saturday!");

		setStatus(@exciterId():32, &strForMess);
		setStatus(V-ADDR, 0);
	}
}

</item>	 

The result of performing the example in the interface:

When clicking the element script the message with current day of week will appear in the interface.