I found a reference to uptime in Misc.ino, and in webserver.ino
I would like to have this uptime in days : hours : minutes (or days / hours / minutes or whatever)
I'm a moderate python programmer, not a C programmer but I found a handy snippet on the internet for seconds conversion which I "converted"
Code: Select all
int minutes= wdcounter/2;
int days=minutes/1440;
minutes=minutes%1440; /* minutes now less than a day */
int hrs=minutes/60;
int minutes=minutes%60; /*minutes less than an hour*/
Code: Select all
printf("D:H:M=%d:%d:%d\n",days,hrs,minutes)

Could someone implement this if there are more in favour of this?