Repository navigation
Conversation
quinnj
force-pushed
the
prototype/subnanosecond-timestamps
branch
from
September 24, 2026 23:18
64f373e to
8fe56bc
Compare
quinnj
force-pushed
the
prototype/subnanosecond-timestamps
branch
from
September 24, 2026 23:46
8fe56bc to
629478c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This demonstrates package-defined picoseconds, femtoseconds, and attoseconds using
Timestamp{P}. It works with released Durations 1.3.0. The shared Timestamp support was merged in #6. This PR targetsmainand contains only the example, documentation, and example checks. No Timestamp implementation changes are included.The 45-line example defines three 128-bit primitive periods and supplies their values, bounds, exact scales, and display. The same example works with Durations' compatibility implementation and with the updated Dates type in JuliaLang/julia#62994. Existing Timestamp methods provide construction, arithmetic, exact conversion, promotion/comparison, hashing, rounding, and ranges.
The example is opt-in and adds no exports or dependencies. It uses BigInt rational intermediates for short, exact endpoint calculations; this is not a performance claim. It formats sub-nanosecond fractions but does not parse strings beyond nine digits. No timezone, Arrow wire-format, or release change is included.
Validation: all 167 example checks passed against a fresh registry installation of Durations 1.3.0 on Julia 1.13.0. They also passed with the updated Dates backend. Complete package suites also passed on Julia 1.10.12 and 1.13.0, and on Julia 1.14 with Dates loaded from the updated Julia PR checkout. CI covers the platform matrix and trim workload.
Co-authored by Codex