-
Notifications
You must be signed in to change notification settings - Fork 13.3k
<time.h> library is missing strptime() #3522
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
Comments
I have the same problem, however; I can most definitely see that the function is there in the the core libs. https://github.com/esp8266/Arduino/search?utf8=%E2%9C%93&q=strptime&type= Did you ever figure this out? |
No I have not. I also tried implementing a replacement using sscanf() but that's also missing from the 8266 core. I think that one or the other might be corrected in 2.4.0, but I can'r say for sure. |
@jxmot your issue says 2.3.0 core, which is rather old. Please retest with latest git. |
I can't right now. I'm using the release 2..3.0 and unfortunately too busy to uninstall it and install a release candidate. Or is it possible for the two versions to coexist in the IDE? |
Only one version can be installed at a time. |
I'll install the git library later this evening and report back. I've also been using the latest ide version. |
Don't forget to restart the Arduino IDE after installing the core via git |
I installed the current git version and strptime compiles! Thanks! jxmot it was really simple... Literally a 4-5 minute process. There are more options for the boards (at least for the D1 mini) it took me a minute to notice that you have to enable the serial port. devyte... any idea why it doesn't work in 2.3.0? I can see the function in the time library... either way I don't see why this issue should remain open. |
2.3.0 release was quite some time ago, and a whole lot has been fixed since. |
Basic Info
Hardware
Hardware: NodeMCU 1.0 (ESP-12E)
Core Version: 2.3.0
Description
I need to use the strptime() function to create an epoch-like value that represents midnight of the current day. However it looks like that strptime() is not present in the library because it appears that the build fails during linking.
Settings in IDE
Module: NodeMCU 1.0 (ESP-12E)
Flash Size: 4MB/1MB SPIFFS
CPU Frequency: 80Mhz
Sketch
Debug Messages
The text was updated successfully, but these errors were encountered: