I need to set an alarm which will trigger 250 days set. I am using the Time.Lib and looking through the document found this:
#define elapsedDays(_time_) ((_time_) / SECS_PER_DAY) // this is number of days since Jan 1 1970
The way I plan to count the days would be to create a variable to initially store the start of the daycount and do something like this
if (elapsedDays () - previouselapsedDays >= 250)
the problem is when i did do this it was not compiling, which lead me to believe I cant just use elapsedDays as I have.
Can anybody shed some light?