Skip to content
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

suffixes for helper chrono types added in C++ 20 #3664

Merged
merged 4 commits into from
Oct 7, 2023

Conversation

Richardk2n
Copy link
Contributor

C++ 20 added
std::chrono::days
std::chrono::weeks
std::chrono::months
std::chrono::years

This adds suffixes for them.

The standard only specifies d for days, but it also specifies min for minutes, while fmt uses m so I am not sure how far you want to deviate from there.

Copy link
Contributor

@vitaut vitaut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR but except for d I don't see these suffixes defined in https://eel.is/c++draft/time.duration.io.

include/fmt/chrono.h Outdated Show resolved Hide resolved
@vitaut vitaut merged commit bb8d50f into fmtlib:master Oct 7, 2023
40 checks passed
@vitaut
Copy link
Contributor

vitaut commented Oct 7, 2023

Thank you!

ckerr pushed a commit to transmission/fmt that referenced this pull request Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants