Repository navigation
time: accept one to nine ISO 8601 fractional digits - #675
Merged
Merged
Conversation
Signed-off-by: Gavin-Yau <[email protected]>
LunaStev
self-requested a review
September 20, 2026 14:17
LunaStev
approved these changes
Sep 20, 2026
LunaStev
left a comment
Member
There was a problem hiding this comment.
LGTM, thank you for your contribution!
Open
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.
Summary
time_datetime_parse_iso8601and right-pad them to nanoseconds.TIME_FORMAT_ISO8601_LENGTH.Motivation
Fixes #673. Valid millisecond and microsecond UTC timestamps currently fail because the parser accepts only whole seconds or exactly nine fractional digits.
Target and compatibility impact
The parser now accepts the documented UTC subset with one through nine ASCII fractional digits. Timezone offsets and other ISO 8601 forms remain unsupported. No formatter, ABI, or target contract changes.
Validation
cargo fmt --all --check./tools/check_std_policy.shcargo +1.89.0 clippy --locked --workspace --all-targets -- -D warningsRUSTDOCFLAGS="-D warnings" cargo +1.89.0 doc --locked --workspace --no-deps --jobs 2python3 -m py_compile ...andpython3 -m unittest tools.test_case_manifest tools.test_test_contracts tools.test_process_treecargo +1.89.0 build --locked --release --jobs 2python3 tools/check_wave_corpus.py --wavec target/release/wavec --run-std-examples(280 corpus files and 26 std examples)python3 tools/run_tests.py --suite linux/amd64 --only linux/amd64/test19.wavewith an isolated stdlib homeThe full workspace Rust suite was also attempted with Rust 1.89. On this local macOS host it stops in the unmodified native standard-I/O capture/TCP regression group; the focused time case and all parser-related checks above pass.
Checklist
Signed-off-byline.std/.