
13 Jan
2020
13 Jan
'20
10:48 a.m.
On Mon, 13 Jan 2020 10:10:36 +1300, Peter Reutemann quoted:
'Another date storage problem also faces us in the year 2038. The issue again stems from Unix's epoch time: the data is stored as a 32-bit integer, which will run out of capacity at 3.14 am on 19 January 2038.'
POSIX specifies that the type for the timestamp is “time_t”. That has usually been 32 bits on 32-bit systems, but on 64-bit systems it has always been 64 bits. Moral: use the proper types for your data as per the standards, and your code will work a lot better.