Re:The future of 32-bit Linux
by rurban on Saturday December 05, 2020 @06:12AM
(#25313621)
Not at all. Simply interpret time_t as unsigned, recompile and it works until 2106.
There's no need for unix timestamps before 1970 anymore.
There are also other replacement tricks, as in perl5.
[ Parent
| on HN ]
You'll find a large chunk of software breaks because it incorrectly uses time_t as a generic arithmetic type. Taking the diff of two unsigned integers and checking if the result is less than zero will end up making you weep.