day month year variables

I notice when I declare date or time variables, they turn red. It appears they function like any other, but if the system is already aware of those variables, do I need to declare them?

Capture.JPG

Capture.JPG

Text highlighting is eye-candy.

The compiler is colour-blind.

I understand the color doesn't mean anything to the arduino, I just figured there had to be some reason the ide changed the color.

There’s a keywords files somewhere with “day” “month” and “minutes” in it.
And a whole lot of other junk.

tsperry88:
I notice when I declare date or time variables, they turn red. It appears they function like any other, but if the system is already aware of those variables, do I need to declare them?

When you open the Arduino IDE, it searches through all the libraries for any keywords.txt files and makes a lists of all the keywords for highlighting purposes. The words will be highlighted regardless of whether or not the library is actually used or referenced in your code. If you accidentally use a pre-defined name in a declaration, it should generate a warning or error while compiling.