but he sets time every cycle to 3.0.0 ... not only if the "if" value is true...
(it works when I remove the part of the date in the 'IF' part...
but i need it to be on a specific day...
2nd problem:
I'dd like to do the same thing but 2h has to become 1h... (on another day)
problem: within an hour it'll be 2 again, and I just want the clock to turn back one time!
who can help me?
code in attachment : problem in lines ( 138 - 154) i think
Please add your code between code tags next time >
I would suggest watching these:
-I see a lot of empty else statements. You should remove them if you aren't doing anything with them.
-Press Control + T to auto format your code (if you are using the Arduino IDE).
-I think it would be better to store your hours, minutes, seconds and dates in an Array.
-I am not a genius but aren't you using the wrong variable type for this? An integer is to store your dates, I think.
I'm not familiar with how t.date is stored but if it works without t.date included then I would suspect that finding out how t.date works would give you your answer. Maybe you have to check day of month, month and year separately instead of all at the same time.