8000
Skip to content

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

Merged
vitaut merged 4 commits intofmtlib:masterfrom
Richardk2n:master
Oct 7, 2023
Merged

suffixes for helper chrono types added in C++ 20#3664
vitaut merged 4 commits intofmtlib:masterfrom
Richardk2n:master

Conversation

@Richardk2n
Copy link
Copy Markdown
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
Copy Markdown
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.

@vitaut vitaut merged commit bb8d50f into fmtlib:master Oct 7, 2023
@vitaut
Copy link
Copy Markdown
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.

3 participants

0