wiki:Docs/Prog/Manual/ApplicationLibraries/lib825ev/Time/IsTimeChanged

IsTimeChanged

Checks whether the time is on a new second

bool IsTimeChanged(void);

Parameters

This function does not accept any parameters.

Return Value

  • Returns true if the time is at a new second, or false if the time is still on the same second as the last time IsTimeChanged was called.

Remarks

When a new second is detected this function populates the g_datetime structure so that calls to GetTimeStr and GetDateStr will return the current time and date.

Examples

if(IsTimeChanged())
{
    DisplayText(0, 0, GetDateStr());
    DisplayText(0, 30, GetTimeStr(1));
}

See Also

Last modified 6 years ago Last modified on 04/13/18 07:14:57
Note: See TracWiki for help on using the wiki.