dsec — number of seconds from the beginning of day.

Description:

u32 dsec();

Returns number of seconds from the beginning of day.

Return values:

Returns number of seconds passed from the beginning of day. Type of return value u32.

Example:

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

V-ID/V-ADDR 
{
	if(opt0())
	{
		u32 Dsec = dsec();
		u8 strForMess[70]; 
		sprintf(strForMess, "%cFrom the beginning of day %d seconds have passed!", 1, Dsec);
		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 number of seconds passed from the beginning of a day will appear in the interface.