3 ms·
I was involved in building a system using 32-bit ints as timestamps ten years ago. They are still sold, and since it's industrial equipment running on 16 bit mi
by wongarsu 6y ago
I was involved in building a system using 32-bit ints as timestamps ten years ago. They are still sold, and since it's industrial equipment running on 16 bit microcontrollers I have every reason to believe most of them will still be around in 2038.
I don't think I was at the only company doing this. Few people seem to care about issues that will happen after their retirement. Expect lots of industrial stuff to work just a bit worse around 2038 (and 2036, PIC microcontrollers fail a bit sooner)
- jkoudys 6y ago"A society grows great when old devs allocate timestamps whose higher bits they shall never set."
- hazeii 6y agoWhy will PIC's fail sooner? (and which ones, 8, 16 or 32bit?)
- wongarsu 6y agoI worked with the 16 bit PIC24f. I don't have the source handy to check, but according to a forum entry "The provided gmtime() actually fails earlier than 2038. The year wraps around when the time_t input goes beyond 0x7C55817F or Thu Feb 7 06:28:15 2036." [1] 1: https://www.microchip.com/forums/m522929.aspx https://www.microchip.com/forums/m522929.aspx
- hazeii 6y agoThanks - so seems it's an issue with their library, rather than something to with PIC's per se.