Closed Iamnotagenius closed 1 month ago
%OB
seems non-standard: https://eel.is/c++draft/tab:time.format.spec. Where is it documented?
Some discussions about standardizing this in C: https://www.austingroupbugs.net/view.php?id=1166 https://www.austingroupbugs.net/view.php?id=258
Closing as there doesn't seem to be much interest but a PR would still be welcome.
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 in31 марта
. 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.