C:\Users\Will\Downloads\Arduino\arduino-1.0.3\libraries\DateTime\DateTime.cpp: In member function ‘void DateTimeClass::setTime(time_t)’:
C:\Users\Will\Downloads\Arduino\arduino-1.0.3\libraries\DateTime\DateTime.cpp:28: error: ‘millis’ was not declared in this scope
C:\Users\Will\Downloads\Arduino\arduino-1.0.3\libraries\DateTime\DateTime.cpp: In member function ‘time_t DateTimeClass::now()’:
C:\Users\Will\Downloads\Arduino\arduino-1.0.3\libraries\DateTime\DateTime.cpp:43: error: ‘millis’ was not declared in this scope
Arduino DateTime Error
Add this #include <Arduino.h> to your DateTime.cpp [This is important] not to DateTime.h
Please double check the path of your DateTime.h and DateTime.cpp file. Sometimes arduino setup is installed in different drive but the error suggest you different path of your DateTime.cpp and DateTime.h which is actual path of your files. So you must follow the actual path of your DateTime library suggested by error window before editing.
Like in my case, it is :
C:\Documents and Settings\admin\My Documents\Arduino\libraries
And Arduino setup installed in F Drive.