News for hackers. Stuff that matters.
Re:Germany lays out a path to quit coal by 2038 by cozzyd on Saturday January 26, 2019 @05:08PM (#19008835)
In 2038, the coal company clocks roll back to 1901, when all was good in the world for them.
Re:Germany lays out a path to quit coal by 2038 by kbutler on Saturday January 26, 2019 @06:18PM (#19009208)
...to 1970...
Re:Germany lays out a path to quit coal by 2038 by jcranmer on Saturday January 26, 2019 @07:16PM (#19009477)
No, it rolls over to 1901. time_t is a signed value, and 2038 is when it rolls over from 2³¹ - 1 to -2³¹. That would be 2 billion seconds before 1970, or 1901.
Re:Germany lays out a path to quit coal by 2038 by est31 on Saturday January 26, 2019 @06:59PM (#19009402)
... which was a very great year for lignite mining: https://www.oeko.de/fileadmin/oekodoc/BET2017-Hermann-Oeko-I...
Re:Germany lays out a path to quit coal by 2038 by cozzyd on Saturday January 26, 2019 @09:43PM (#19010088)
If our Unix forefathers had the foresight to make time_t unsigned, then we wouldn't have to worry about this problem until after 2100.