Repository navigation
date: shorten the trailing-abbreviation comment - #16904
Closed
yusufemreboyraz wants to merge 1 commit into
Closed
yusufemreboyraz wants to merge 1 commit into
yusufemreboyraz wants to merge 1 commit into
Conversation
Seven lines of comment for five lines of code. The CST and IST examples it spelled out are already named cases in test_date_trailing_abbreviation_resolved_against_current_zone, so the comment now keeps only the rule. Follow-up to uutils#16865.
oech3
reviewed
Nov 27, 2026
| // the current zone does not go by that abbreviation at this instant does | ||
| // the table decide. `zoned` is `date_part` read in `now`'s zone, so its | ||
| // timestamp is the instant to ask about. | ||
| // Like GNU, resolve an ambiguous abbreviation against the current zone |
Contributor
There was a problem hiding this comment.
Suggested change
| // Like GNU, resolve an ambiguous abbreviation against the current zone | |
| // Resolve an ambiguous abbreviation against the current zone |
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.
@sylvestre asked for this on #16865: seven lines of comment for five lines of code, and the CST/IST examples are already in the test.
It is two lines now, and the examples stay where they already are, as named cases in
test_date_trailing_abbreviation_resolved_against_current_zone.cargo fmt -- --checkis clean and the date suite passes, 244 passed and 0 failed, all seven cases included.