Repository navigation
Test 1 oss-120b - #1
Open
atakanserifoglu wants to merge 1 commit into
Open
atakanserifoglu wants to merge 1 commit into
atakanserifoglu wants to merge 1 commit into
Conversation
…ctional durations
|
@deeployed-peer-dev review |
There was a problem hiding this comment.
Commits
Files that changed from the base of the PR and between Base and e21e942 commits: 3Files Selected For Review: 3
- include/fmt/chrono.h with diff length 15943.
- test/chrono-test.cc with diff length 4017.
- test/xchar-test.cc with diff length 421.
Review comments generated: (13)
- Review: 1
- LGTM: 12
- Identified issue already discussed: 0
Tips
Chat with Deeployed Bot (@@deeployed-peer-dev)
- Reply on review comments left by this bot to ask follow-up questions. A review comment is a comment on a diff or a file.
- Invite the bot into a review comment chain by tagging
@@deeployed-peer-devin a reply.
Code suggestions
- The bot may make code suggestions, but please review them carefully before committing since the line number ranges may be misaligned.
- You can edit the comment made by the bot and manually tweak the suggestion if it is slightly off.
Pausing incremental reviews
- Add
@deeployed-peer-dev: ignoreanywhere in the PR description to pause further reviews from the bot.
|
|
||
| TEST(chrono_test_wchar, time_point) { | ||
| auto t1 = std::chrono::system_clock::now(); | ||
| auto t1 = std::chrono::time_point_cast<std::chrono::seconds>( |
There was a problem hiding this comment.
Potential compile issue: std::chrono::time_point_cast requires C++20. If the project targets an earlier C++ standard, this line will fail to compile. Consider using a C++11/14‑compatible approach, e.g.:
Suggested change
| auto t1 = std::chrono::time_point_cast<std::chrono::seconds>( | |
| auto t1 = std::chrono::time_point<std::chrono::system_clock, std::chrono::seconds>( | |
| std::chrono::duration_cast<std::chrono::seconds>(std::chrono::system_clock::now().time_since_epoch())); |
Author
|
@deeployed-peer-dev review |
|
Currently reviewing new changes in this PR... CommitsFiles that changed from the base of the PR and between Base and e21e942 commits: 3Files Selected For Review: 3
|
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.
The formatting symbol {%S} should also print the subseconds, e.g., fmt::format("{:%S}", std::chrono::microseconds(1234567)) should print "01.234567".
Didn't implement it for localized output as this localized output looks like black magic to me... may be we can omit it for the localized formatting for the first time?