4 ms·
First time I hear about this, will have to read more. Is this used widely? I’ve always run my servers on UTC time and stored all dates the same.
by moomoo11 4y ago
First time I hear about this, will have to read more. Is this used widely?
I’ve always run my servers on UTC time and stored all dates the same.
- chronogram 4y agoIf you're just talking about running a typical Linux server with your server applications on top, then it's 99% of the time all 64-bit and nothing to worry about. 64-bit time is going to be used on 32-bit systems as well, so if you have those systems make sure to upgrade them in a decade. Though saying this, I think you still have to manually remember to upgrade XFS filesystems so maybe there will be some things to worry about next decade.
- viraptor 4y agoTAI is not a timezone. For actual clock, you still want to use UTC most likely. TAI is more of a format for describing that time. You can convert from UTC to TAI by removing the 37 leap seconds we got so far. Check out https://en.wikipedia.org/wiki/International_Atomic_Time https://en.wikipedia.org/wiki/International_Atomic_Time
- imoverclocked 4y agoThe pedant in me is forcing me to say: The general conversion is a little more subtle than just removing 37 leap seconds. This is especially if you want to convert a date in the past since we haven't always had 37 leap seconds to account for. Also, things can get tricky right around those leap seconds when it matters.
- SPBS 4y agohttps://dyscour.se/post/12679668746/using-tai64-for-logging https://dyscour.se/post/12679668746/using-tai64-for-logging > This means that the date is stored as a 64-bit number, the bottom 63 bits being the number of seconds since 1970-01-01 in TAI, offset by 2^62. In essence, this makes the value quite similar to time_t (which uses UTC), except for two things: > There are 63 bits to play with, not just 32 (no year-2038 problems!). > The timestamp is always monotonic, counting all leap seconds. TAI time seems to be just UTC unix timestamps but accounting for leap seconds. Since leap seconds are slated to be retired after 2035, I’m guessing TAI time and Unix time won’t be so different after that.