#include <time.h>
struct tm* ti;
time_t testTime = 123456789;
void setup() {
Serial.begin( 115200 );
ti = localtime( &testTime );
Serial.print( ti->tm_mday );
}
void loop() { }
This code compiles and works with the old 1.6.1 github download.
Compiling with arduino 1.6.5 and the current 1.6.4-637-g8cd3697 plugin
leads to:
undefined reference to 'localtime'
while linking.
What went wrong?