【Feedback】year 2038 problem on time() and sntp_get_current_timestamp()千年虫2.0问题

nobk
Posts: 1
Joined: Mon May 02, 2016 5:56 am

【Feedback】year 2038 problem on time() and sntp_get_current_timestamp()千年虫2.0问题

Postby nobk » Mon May 02, 2016 6:11 am

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年再改要好一些。

ESP_Rubin
Posts: 222
Joined: Wed Jun 29, 2016 11:59 am

Re: year 2038 problem on time() and sntp_get_current_timestamp()千年虫2.0问题

Postby ESP_Rubin » Tue Jul 05, 2016 4:50 pm

这个确实是个问题,我会提交内部,尽快弄个解决方案出来,多谢提醒!!

Who is online

Users browsing this forum: No registered users and 15 guests