year — current year.

Description:

u32 year();

Returns the current year starting from 1900.

Return values:

Returns the current value of the year starting from 1900. The value is the integer number consisting of three figures where the last two specify the current year (for example: 2012 – 112, 2014 – 114, 2015 – 115). Type of return value u32.

Example:

<item addr="524:248" name="Test for year function" type="script">

V-ID/V-ADDR 
{
	if(opt0())
	{
		u32 Year = year();
		u32 Month = month();
		Year = Year % 100;
		u8 strForMess[70] = {1, "Now "}; 

				if(Month == 0) 
					strcat(strForMess, "January!");

				if(Month == 1) 
					strcat(strForMess, "February!");

				if(Month == 2) 
					strcat(strForMess, "March!");

				if(Month == 3) 
					strcat(strForMess, "April!");

				if(Month == 4) 
					strcat(strForMess, "May!");

				if(Month == 5) 
					strcat(strForMess, "June!");

				if(Month == 6) 
					strcat(strForMess, "July!");

				if(Month == 7)
					strcat(strForMess, "August!");

				if(Month == 8)
					strcat(strForMess, "September!");

				if(Month == 9) 
					strcat(strForMess, "October!");

				if(Month == 10)
					strcat(strForMess, "November!");

				if(Month == 11)
					strcat(strForMess, "December!");

		sprintf(strForMess, "%s 20%d year!", strForMess, Year);
		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 month and year will appear in the interface.