3 ms·
Use 128 bit integer in femptoseconds, with epoch being the begining of the universe. And it should be signed, because what if there was a previous universe. Jo
by ClumsyPilot 3y ago
Use 128 bit integer in femptoseconds, with epoch being the begining of the universe. And it should be signed, because what if there was a previous universe.
Jokes aside, Unix Epoch shouls be replaced by Tai time on every computer.
https://en.m.wikipedia.org/wiki/International_Atomic_Time https://en.m.wikipedia.org/wiki/International_Atomic_Time
- well_actulily 3y agoThat gets us to ~5.392 * 10ˆ15 years after the Big Bang, which doesn't nearly get you to the heat death of the universe ~1.7 * 10ˆ106 years from now, but is probably good enough.
- jjoonathan 3y agoBlack hole farmers hate this.
- mihaic 3y agoThe person that pushed for the leap second should be flogged very hard!
- erik_seaberg 3y agoNo, he might be into that.
- halosghost 3y agoIf we're going to go this far, why not go all the way? [1] I.e., use a 536-bit unsigned integer to store Planck time with one Planck time following the big bang as the epoch, and use the top three bits as a tetration height instead of an exponent, and you can get real far. All the best, [1] https://halosgho.st/blog/planck/ https://halosgho.st/blog/planck/
- cyann 3y agoAt first glance I thought you were talking about "Thai" time, which is a surprising calendar when you have dates with years in the 2500 range. Looking at you Symantec AntiVirus, storing AV definitions date using the user's locale... https://en.wikipedia.org/wiki/Buddhist_calendar https://en.wikipedia.org/wiki/Buddhist_calendar
- Const-me 3y agoThe problem with Tai time, in offline systems it’s impossible to implement calendars on top. To translate Tai time to human-readable one, you gonna need a database of adjustments. We only have that data for very small interval of dates between 1972, and now()+6 months. For the past, it’s possible to workaround by saying “no leap seconds” but this means that 12PM 1000 years ago might be any time of the day. But that workaround not gonna work for the future. For many use cases it’s important to be able to represent date-time for many years in the future. The currently used formats allow that easily, at the price of these unpredictable leap second adjustments.