msWithinDay() — number of milliseconds from the beginning of day.

Description:

u32 msWithinDay();

Returns number of milliseconds from the beginning of day.

Return values:

Returns the present number of milliseconds from the beginning of day. Type of return value u32.

Example:

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

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

	// Result output to the interface
	u8 strForMess[100];
	sprintf(strForMess, "%cMilliseconds from the beginning of a day: %d", 1, msec);
	setStatus(INTERFACEID:32, &strForMess);
}
</item>

The result of performing the example in the interface:

Every second the messages with current value of milliseconds passed from the beginning of day appear in the interface.