Hey guys i need help to display time on web browser. when sensor senses a break in, it will trigger and take down of tat specific time and be printed out in a textfile den display on the web browser. Pls help me thx… I do not know how can i save the time to a textfile.
Some Pros pls help me take a look which part of my coding went wrong>>>>
void update_text()
{
auto struct tm time;
char includes[512];
#GLOBAL_INIT { date_lock=0; }
if(date_lock) return;
tm_rd(&time);
month=time.tm_mon;
day=time.tm_mday;
year=time.tm_year+1900;
hour=time.tm_hour;
minute=time.tm_min;
second=time.tm_sec;
root2xmem(includes_txt,includes,512);
sprintf(includes,"%02d/%02d/%04d %02d:%02d:%02d",
month,
day,
year,
hour,
minute,
second);
}
Your coding seems fine, let me check it on my PC only then i will be able to crack the error