Re:Approaching the kernel year-2038 end game
by jorams on Friday January 11, 2019 @08:46PM
(#18888956)
While 32-bit time_t lasts for roughly 68 years, 64-bit time_t lasts for roughly 292270958501 years.
[ Parent
| on HN ]
Re:Approaching the kernel year-2038 end game
by perl4ever on Sunday January 13, 2019 @02:50AM
(#18895636)
Well, what if you want to measure small fractions of a second? If your timestamps have significantly higher resolution than a nanosecond, you've used up your extra 32 bits. And there is technology that operates on much shorter intervals, like about 10^-18 seconds. While it may not be very relevant today, if you really want to future proof things for the next 1000 years, I think you need around 90 bits or more.
"12 attoseconds is the world record for shortest controllable time"
https://phys.org/news/2010-05-attoseconds-world-shortest.htm...
After further consideration, the ultimate timestamp would be able to denote any point in time measured in Planck units (10^-44 seconds) between the beginning of the universe and its ultimate heat death in about 3 x 10^21 seconds. Therefore 218 bits should be enough for anyone.