time_t defined as long, and sntp_get_current_timestamp() retun uint32. both of them have year 2038 problem.
如果拿他们做日历时钟的话,走到2038年以后就乱了,尽管很多时钟号称能用到2100年。
而且要是这个物联网模块只能用到2038年的话,寿命也太短了一点。
建议提供以下函数:
suggestion functions: long long time64(),long long sntp_get_current_timestamp64()。
现在改总比到了2037年再改要好一些。
【Feedback】year 2038 problem on time() and sntp_get_current_timestamp()千年虫2.0问题
Who is online
Users browsing this forum: No registered users and 288 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.