I don't wish to "hijack" this thread, but since it was brought-up in a reply, and I have the question...

Does anyone have a tested function or methodology to work with the millis() - total elapsed time since reset - as it rolls-over the max value (every 50 days or so is what the Reference material says)?
Specifically, I have one "test" that I need to conduct to see if something happens WEEKLY, so it's very possible, if the unit is running a decent amount of time, that I would record a value close to ULONG_MAX, then during the following days, the value would be significantly less; messing-up my delta-calculation.
I'm assuming others have already devised a method or strawman to get-around this limitation and was just looking to "not reinvent the wheel".
Thanks in advance,
Moderator edit: Topic split and renamed.
AJ