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 %k and %l chrono specifiers #3982

Closed
wants to merge 4 commits into from

Conversation

ZaheenJ
Copy link
Contributor

@ZaheenJ ZaheenJ commented May 27, 2024

Trivially support "%k" and "%l", which strftime supports as equivalents to "%_H" and "%_I" respectively. Previous discussion here #3976

@vitaut
Copy link
Contributor

vitaut commented May 31, 2024

Thanks for the PR. I'm not sure if we need this considering that we already have %_H and %_I. Is there any benefit other than these being a bit shorter?

@ZaheenJ
Copy link
Contributor Author

ZaheenJ commented May 31, 2024

Only real benefit is it matches the manpages for date and strftime. (Personally I was using the date manpage to configure my Waybar.)

@vitaut
Copy link
Contributor

vitaut commented Jun 2, 2024

I think it's more important to minimize the divergence from the standard formatter than to try mimic GNU strftime. But thanks for the PR anyway.

@vitaut vitaut closed this Jun 2, 2024
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