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
Steps to reproduce:
date --date '2016-6-1' +%q
What happens now: uutils date terminates with an error message:
date
date: invalid format %q
What I expected to happen: GNU date prints the quarter number:
2
Notes: this is causing a failure in the GNU test file tests/date/date.pl.
tests/date/date.pl
The text was updated successfully, but these errors were encountered:
Looks like %q format specifier is missing in chrono crate.
%q
chrono
I'll have a look.
Sorry, something went wrong.
chronotope/chrono#1666 should do the trick.
With a local chrono checkout:
cargo run --config 'patch.crates-io.chrono.path="../chrono"' date --date '2016-6-1' +'%q' ... 2
Merged upstream. I guess we just need to wait for a release 0.4.40 now.
https://github.com/chronotope/chrono/releases/tag/v0.4.40 released. I assume the renovate bot will pick it up?
Fixed by #7360
@drinkcat thanks for adding the functionality to chrono :)
Successfully merging a pull request may close this issue.
Steps to reproduce:
What happens now: uutils
date
terminates with an error message:What I expected to happen: GNU
date
prints the quarter number:Notes: this is causing a failure in the GNU test file
tests/date/date.pl
.The text was updated successfully, but these errors were encountered: