Hello,
I tray to compile an example of the library > timezone > Worldclock.pde but I only have errors in visualmicro and the arduino ide
is the timezone not up to date or....
E R R O R :
Arduino: 1.8.0 (Windows 10), Board:"Arduino Pro or Pro Mini, ATmega328 (5V, 16 MHz)"
WorldClock:41: error: 'dowSunday' was not declared in this scope
TimeChangeRule usCDT = {"CDT", Second, dowSunday, Mar, 2, -300};
^
WorldClock:42: error: 'dowSunday' was not declared in this scope
TimeChangeRule usCST = {"CST", First, dowSunday, Nov, 2, -360};
^
WorldClock:46: error: 'dowSunday' was not declared in this scope
TimeChangeRule usMDT = {"MDT", Second, dowSunday, Mar, 2, -360};
^
WorldClock:47: error: 'dowSunday' was not declared in this scope
TimeChangeRule usMST = {"MST", First, dowSunday, Nov, 2, -420};
^
WorldClock:54: error: 'dowSunday' was not declared in this scope
TimeChangeRule usPDT = {"PDT", Second, dowSunday, Mar, 2, -420};
^
WorldClock:55: error: 'dowSunday' was not declared in this scope
TimeChangeRule usPST = {"PST", First, dowSunday, Nov, 2, -480};
^
C:\Program Files (x86)\Arduino\libraries\Timezone\examples\WorldClock\WorldClock.pde: In function 'void setup()':
WorldClock:64: error: 'setTime' was not declared in this scope
setTime(usET.toUTC(compileTime()));
^
C:\Program Files (x86)\Arduino\libraries\Timezone\examples\WorldClock\WorldClock.pde: In function 'void loop()':
WorldClock:70: error: 'now' was not declared in this scope
utc = now();
^
C:\Program Files (x86)\Arduino\libraries\Timezone\examples\WorldClock\WorldClock.pde: In function 'time_t compileTime()':
WorldClock:91: error: 'tmElements_t' was not declared in this scope
tmElements_t tm;
^
WorldClock:97: error: expected unqualified-id before '.' token
tm.Month = ((m - months) / 3 + 1);
^
WorldClock:99: error: expected unqualified-id before '.' token
tm.Day = atoi(compDate + 4);
^
WorldClock:100: error: expected unqualified-id before '.' token
tm.Year = atoi(compDate + 7) - 1970;
^
WorldClock:101: error: expected unqualified-id before '.' token
tm.Hour = atoi(compTime);
^
WorldClock:102: error: expected unqualified-id before '.' token
tm.Minute = atoi(compTime + 3);
^
WorldClock:103: error: expected unqualified-id before '.' token
tm.Second = atoi(compTime + 6);
^
WorldClock:104: error: expected primary-expression before ')' token
t = makeTime(tm);
^
WorldClock:104: error: 'makeTime' was not declared in this scope
C:\Program Files (x86)\Arduino\libraries\Timezone\examples\WorldClock\WorldClock.pde: In function 'void printTime(time_t, char*, char*)':
WorldClock:111: error: 'hour' was not declared in this scope
sPrintI00(hour(t));
^
WorldClock:112: error: 'minute' was not declared in this scope
sPrintDigits(minute(t));
^
WorldClock:113: error: 'second' was not declared in this scope
sPrintDigits(second(t));
^
WorldClock:115: error: 'weekday' was not declared in this scope
Serial.print(dayShortStr(weekday(t)));
^
WorldClock:115: error: 'dayShortStr' was not declared in this scope
Serial.print(dayShortStr(weekday(t)));
^
WorldClock:117: error: 'day' was not declared in this scope
sPrintI00(day(t));
^
WorldClock:119: error: 'month' was not declared in this scope
Serial.print(monthShortStr(month(t)));
^
WorldClock:119: error: 'monthShortStr' was not declared in this scope
Serial.print(monthShortStr(month(t)));
^
WorldClock:121: error: 'year' was not declared in this scope
Serial.print(year(t));
^
exit status 1
'dowSunday' was not declared in this scope
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.