hows this going to work
if Days => Set_Day and Hours => Set_Hour and _
Minutes => Set_Min and Seconds => Set_Sec and _
100th => Set_100th then OT_Enable = 1
imagine set day=0 set hour=1 set min=30
if hour = 2 and min=29 then it will test false when it should be true
u need to think in terms of timestamp
timestamp= sec+min*60 +hour*3600 etc day * whatever. (unix does it from some arcane date in 1980 in microseconds)
then compare timestamp
this will not solve rollovers however
from wiki
unix timestamp 00:00:00 UTC on January 1, 1970
Bookmarks