bug in the timealarm library

macro previousSunday and isExplicitAlarm have errors
previoussunday need to be

#define previousSunday(_time_)  (max(_time_,SECS_PER_WEEK) - elapsedSecsThisWeek(_time_))  // time at the start of the week for the given time

(you could remove the max, but in this case keep time not SECS_PER_WEEK) :wink:

the isExplicitAlarm macro need to be

#define isExplicitAlarm (value > (SECS_PER_WEEK+SECS_PER_DAY)) // alarm is at the given time and date

sorry but I have spent wayyyyyy to much time with your code during the last days :wink:

regards