3 ms·
The real crime is not using a standard date time library and a simple > 2021-11-21
by bombcar 3y ago
The real crime is not using a standard date time library and a simple > 2021-11-21
- p_l 3y agoCan be often problematic on PLCs and the programming environment exposed to programmer.
- cj 3y agoPersonally I prefer measuring time as seconds that have passed since January 1st, 1970.
- Faaak 3y agoAnd then your train is 32bits and stops working in 2038 ;-)
- rollcat 3y agoEven being evil requires a certain level of competence. It's how we actually catch any of them.
- pixel8account 3y agoThis is a reason why it was detected a year later - the train service was delayed and it spent late November and whole December in service. So the "expiration" intended for 2021 only manifested in 2022.
- delfinom 3y agoThis was programmed into a PLC, not traditional code. PLCs are basically environments designed for mere technicians being able to adjust code in very clear concise fashion. It can be way more verbose, but the logic is clear and solid for decades of operation. It doesn't require reading an api documentation on version X of a library downloaded from NPM 15 years ago nor rebuilding an entire project to the latest dependencies.