time() — number of seconds since 01.01.1970.

Description:

u32 time();

Returns number of seconds followed 01.01.1970.

Return values:

Returns number of seconds followed 01.01.1970. Type of return value u32.

Example:

<item addr="524:248" INTERFACEID="2023" name="Test for time function" type="script">

V-ID/s:1 
{
	u32 s = time();

	// Result output to the interface
	u8 strForMess[100];
	sprintf(strForMess, "%cSeconds followed 01.01.1970: %d", 1, s);
	setStatus(INTERFACEID:32, &strForMess);
}

</item>

The result of performing the example in the interface:

Every second the messages with current value of seconds passed from 01.01.1970 appear in the interface.