Here's a module which converts Unix milliseconds to and from International Atomic Time millisecondshttps://github.com/ferno/t-a-i
-
-
Replying to @qntm
It turns out that instants in Unix time are in a many-to-one relationship with instants in TAI
2 replies 2 retweets 5 likes -
Replying to @qntm
Converting a Unix time to TAI yields an array of one, two or (if we ever remove a leap second) zero possibilities
1 reply 1 retweet 5 likes -
Replying to @qntm
It gets even more complicated prior to 1972, when TAI seconds and UTC seconds weren't the same length
1 reply 0 retweets 1 like -
Replying to @qntm
We will probably never remove a whole leap second, but once or twice we have removed smaller amounts of time from UTC (relative to TAI)
1 reply 0 retweets 0 likes -
Replying to @qntm
1961-07-31 23:59:59.95 to 1961-08-01 00:00:00.00 UTC (inclusive-exclusive) never happened. A removed leap 20th-of-a-second, if you will
1 reply 4 retweets 0 likes -
Replying to @qntm
The tenth of a second from 1968-01-31 23:59:59.9 to 1968-02-01 00:00:00.0 UTC also never happened
1 reply 1 retweet 0 likes -
Replying to @qntm
By the way! A JavaScript `Date` represents an instant in Unix time, not TAI. So, use this instead https://github.com/ferno/tai-date
1 reply 0 retweets 1 like -
Replying to @qntm
I doubt these modules are particularly useful to anybody but I found the endeavour satisfying and highly educational
1 reply 0 retweets 0 likes
Most people, thankfully, do not need to care about leap seconds. I care not because I need to but because I think they're neat
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.