Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
void CalculateTime2(void)
{
u32 TimeVar;
TimeVar=RTC_GetCounter();
TimeVar=TimeVar % 86400;
a_TimeStructVar.Hour=(u8)(TimeVar/3600);
a_TimeStructVar.Min=(u8)((TimeVar%3600)/60);
a_TimeStructVar.Sec=(u8)((TimeVar%3600)%60);
}
struct DateAndTime
{
char Sec;
char Min;
char Hour;
char Day;
char Month;
char year;
};
11am to 2.30pm is offtime , that can create problems