-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need to specify Unix block end times explicitly #4
Comments
I had some fun with arbitrary-precision calculators trying to figure out precisely where any given Unix block ends. The answers are:
(all UTC). Expressed as Unix millisecond counts, these are:
The closest float to each of these numbers is:
BUT what we actually want is the exact float or the next lowest float, which yields a different answer in several cases:
We don't need to use all of those decimal places to uniquely identify those floats, so we can stop at:
|
Same basic reasoning as for #2 and #3. For Unix block end times, we cannot just use the start of the next Unix block, as there is almost always an offset between the two. Irritatingly, the offset is not a neat number of Unix milliseconds but a neat number of often-slightly-shorter TAI milliseconds, which I suspect eventually yields the same 64-bit float but I won't know for sure until I've crunched the numbers...
The text was updated successfully, but these errors were encountered: