3 ms·
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 othe
by rurban 6y ago
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.
- bregma 6y agoYou'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.