Closed fdriesenaar closed 1 year ago
B
is "day period" (e.g. a.m, p.m.).
It doesn't work with a date
object, since dates doesn't have an associated time. It would work with a time
or datetime
.
Hi, thx for your quick and apt response - so, what format is it that I should have used to get the full name of the month?
According to the spec it would be MMMM
. (These are also in the Babel docs here.)
Ah, great, thanks again, you can close this issue :)
A rtfm issue, thx
Overview Description
Hi,
I tried to use format_date with "B" as format and I expected it to work, but instead it raises an exception.
Steps to Reproduce
You can reproduce it by running this script (I used Python 3.8.6 and Babel 2.11.0):
Actual Results
This is what I got:
Expected Results
I expected this outcome:
Reproducibility
See above.
Additional Information
None