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 alternative month format #3914

Open
Iamnotagenius opened this issue Mar 31, 2024 · 2 comments
Open

Add support for alternative month format #3914

Iamnotagenius opened this issue Mar 31, 2024 · 2 comments

Comments

@Iamnotagenius
Copy link

In ru_RU.UTF-8 locale, there's a possibility to specify alternative month format.
For example, specifying %B format, strftime will output this (providing that said locale is in charge): марта.
It works well in scenarios like %d %B, which will result in 31 марта. However, strftime has support for %OB which will output Март with the russian locale. This will be more appropriate to use in formats like %OB %Y which results in Март 2024.
It seems this functionality is not at all present in this library, when I try to format a date like %OB the library throws an invalid format exception.

@vitaut
Copy link
Contributor

vitaut commented Mar 31, 2024

%OB seems non-standard: https://eel.is/c++draft/tab:time.format.spec. Where is it documented?

@jmkuhn
Copy link

jmkuhn commented Apr 29, 2024

Some discussions about standardizing this in C:
https://www.austingroupbugs.net/view.php?id=1166
https://www.austingroupbugs.net/view.php?id=258

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants