-
Notifications
You must be signed in to change notification settings - Fork 13.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NTP-TZ-DST esp8266 example displays year "124" #9205
Comments
i answer myself (after rolling over whole internet and waking up a lot of people...):
so... the "124" means that PRESENTLY, HAD BEEN PASSED "124" i was printing a ...
thanks |
See POSIX ctime reference, this is not something specific to either avr or esp8266 libc
No. Why would it? Where you got that idea from?
You are welcome to update the example(s)
See lwip documentation for the useful part. This is mentioned in the readme btw. SDK methods are not guaranteed to work correctly, please do not refer to NONOS examples or source using NONOS directly |
what is that?... i see info on these pages:
i think it prefectly could save config to flash with
nice ... however it seem lwip sntp functions cannot be used directly in sketches (i tested and compiler complain me about i am not a programmer but a sysadmin, i consider myself a self-learner guy, so sometimes things got harder to me... i am fairly new in programming and C and there are many things i dont know (i.e. using git, do debug, etc) and lot of things i dont even imagine i am sure xD |
sub-frames are to blame...
not the case, and never mentioned in the example or the configTime() source)
We cannot presume how much user does or does not know about the programming environment, and pretty sure these examples were never intended to be used as isolated learning exercises. API usage example, yes. Semi-interactive documentation, probably. |
Basic Infos
Platform
Settings in IDE
<LF>
endlinesProblem Description
time()
function correctlyconfigTime(MYTZ, "pool.ntp.org");
saves configuration in flash? because if it does, which could be a safe way to get ntp time without wearing out the flash each time? (see what happened to this guy)time()
should return CURRENT UTC timestamp andlocaltime()
should translate to local time according timezone set earlierconfigTime()
by defining some macro constant or callback function to correct time when configTime() will set system timeMCVE Sketch
// just the full NTP-TZ-DST example sketch shipped with esp8266-arduino project version 3.1.2
Debug Messages
The text was updated successfully, but these errors were encountered: