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

Add support for std::chrono::year_month_day #3772

Closed
razaqq opened this issue Dec 21, 2023 · 3 comments · Fixed by #3913
Closed

Add support for std::chrono::year_month_day #3772

razaqq opened this issue Dec 21, 2023 · 3 comments · Fixed by #3913

Comments

@razaqq
Copy link
Contributor

razaqq commented Dec 21, 2023

Since c++20 there is https://en.cppreference.com/w/cpp/chrono/year_month_day. Currently the only way to format this is to convert it to a time_point or writing a custom formatter. I think it would be quite useful to support this directly.

There exists an std implementation https://en.cppreference.com/w/cpp/chrono/year_month_day/formatter, but none in {fmt}.

There exists a lot of other calendar points like this, which arent supported either

@vitaut
Copy link
Contributor

vitaut commented Dec 21, 2023

Thanks for the suggestion. I think we should do it but let's merge this issue into #3758 which already discusses cases like this.

@zivshek
Copy link
Contributor

zivshek commented Mar 27, 2024

@vitaut can we reopen this as a separate issue? The implementation is not trivial if we want to support all types of constructors and functionalities.

@vitaut
Copy link
Contributor

vitaut commented Mar 29, 2024

We don't need to support all constructors but let's reopen.

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 a pull request may close this issue.

3 participants