-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
%j doesn't seem to work with a duration object #3643
Labels
Comments
This is not implemented yet but a PR would be welcome. |
Closed
@vitaut I'd be willing do make this happen; any pointers where to start? |
@intelfx, thanks for volunteering =). You need to add and implement similarly to other functions in that class. |
intelfx
added a commit
to intelfx/fmt
that referenced
this issue
Dec 1, 2023
This adds support for '%j' presentation type for duration types: "If the type being formatted is a specialization of duration, the decimal number of days without padding." Fixes fmtlib#3643.
intelfx
added a commit
to intelfx/fmt
that referenced
this issue
Dec 1, 2023
This adds support for `%j` presentation type for duration types: > "If the type being formatted is a specialization of duration, the decimal number of days without padding." Fixes fmtlib#3643.
intelfx
added a commit
to intelfx/fmt
that referenced
this issue
Dec 2, 2023
This adds support for `%j` presentation type for duration types: > "If the type being formatted is a specialization of duration, the decimal number of days without padding." Fixes fmtlib#3643.
intelfx
added a commit
to intelfx/fmt
that referenced
this issue
Dec 2, 2023
This adds support for `%j` presentation type for duration types: > "If the type being formatted is a specialization of duration, the decimal number of days without padding." Fixes fmtlib#3643.
intelfx
added a commit
to intelfx/fmt
that referenced
this issue
Dec 2, 2023
This adds support for `%j` presentation type for duration types: > "If the type being formatted is a specialization of duration, the decimal number of days without padding." Fixes fmtlib#3643.
vitaut
pushed a commit
that referenced
this issue
Dec 3, 2023
This adds support for `%j` presentation type for duration types: > "If the type being formatted is a specialization of duration, the decimal number of days without padding." Fixes #3643.
happymonkey1
pushed a commit
to happymonkey1/fmt
that referenced
this issue
Apr 7, 2024
This adds support for `%j` presentation type for duration types: > "If the type being formatted is a specialization of duration, the decimal number of days without padding." Fixes fmtlib#3643.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
here is the snippet : https://godbolt.org/z/jTxGzvEhT
I'm trying to format a duration in days:hours:minutes:seconds.
using %T work wonders for hours:minutes:seconds, however %j does not compile at all, despite the docs saying "If the type being formatted is a specialization of duration, the decimal number of days without padding." which should fill my use case.
here is a snippet of my compilation error:
I'm using fmt v10.1.1, and originally tried on fmt 9.1.0.
Please advise me if you need additionnal information !
The text was updated successfully, but these errors were encountered: