-->
Page 1 of 1

include time.h from xtensa-lx106-elf\include?

PostPosted: Thu Jan 21, 2016 10:56 pm
by GregryCM
Hello,

Is there a way to include time.h from the C:\Users\Greg\AppData\Roaming\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include folder?

I am trying to use localtime( ) and strftime( ) to get Date and Time from UNIX time that was obtained from NTP time server.

Is there another function(s) that I can use to get the Date?

Thanks,
Greg

Re: include time.h from xtensa-lx106-elf\include?

PostPosted: Fri Jan 22, 2016 12:23 am
by WereCatf
You could just install the Time-library from Arduino IDE's library-manager. It even comes with an example.

Re: include time.h from xtensa-lx106-elf\include?

PostPosted: Mon Jan 25, 2016 11:18 pm
by GregryCM
That is good advice!
I was not aware that library was available, looks like it will suit my needs.

Thanks,
Greg