New submission from Joan Prat Rigol :
If I run this code in Python 3.8 I get the result as expected:
Python 3.8.2 (default, Apr 27 2020, 15:53:34)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
New submission from Joan :
In the documentation at
https://docs.python.org/3.9/library/datetime.html#strftime-strptime-behavior
there's an omission of one of the modifiers that can be add to the strftime
parameters (O and E)
Quoting from http://man7.org/linux/man-pages/man3/strft
Joan added the comment:
Issue can be reproduced with this snippet:
---
import locale
from datetime import datetime
locale.setlocale(locale.LC_ALL, 'ca_AD.utf8')
locale.setlocale(locale.LC_ALL, 'ca_ES.utf8')
#locale.setlocale(locale.LC_ALL, 'es_ES.utf8')
now = dat
New submission from Joan :
There's an incorrect behaviour in the output for the strftime values when in
catalan.
On the documentation at
https://docs.python.org/3.7/library/datetime.html#strftime-strptime-behavior:
- %b Month as locale’s abbreviated name. Jan, Feb, …, Dec (en_US)
- %B