We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The grammar in the documentation
replacement_field: "{" [`arg_id`] [":" (`format_spec` | `chrono_format_spec`)] "}" chrono_format_spec: [[`fill`]`align`][`width`]["." `precision`][`chrono_specs`] chrono_specs: [`chrono_specs`] `conversion_spec` | `chrono_specs` `literal_char` conversion_spec: "%" [`modifier`] `chrono_type`
suggests to me that {:>30%H} is valid, but this is not what fmt-9.1.0 and/or master @ b908954 outputs.
{:>30%H}
Input:
#include <chrono> #include <fmt/core.h> #include <fmt/chrono.h> int main() { fmt::print("{:>30d}\n", 30); fmt::print("{:>30%H:%M}\n", std::chrono::system_clock::now()); }
Output:
30 >3023:48
Expected:
30 23:48
The text was updated successfully, but these errors were encountered:
Formatting of time points is still WIP and only supports chrono_specs at the moment. PRs to add support for other specifiers are welcome.
chrono_specs
Sorry, something went wrong.
Or maybe we can edit the documentation until that's supported?
Successfully merging a pull request may close this issue.
The grammar in the documentation
suggests to me that
{:>30%H}
is valid, but this is not what fmt-9.1.0 and/or master @ b908954 outputs.Input:
Output:
Expected:
The text was updated successfully, but these errors were encountered: