How do I get datetime.datetime.now() printed out in the native language?
>>> session.deathDate.strftime("%a, %d %b %Y")
'Fri, 12 Jun 2009'
I have a date output like
>>> import time
>>> print time.strftime("%d %B")
I have a datetime object, for which I want to create a date string according to the OS locale settings (as specified e.g. in Windows'7 region and language settings).
I am trying to understand what option value n exactly does in string formatting for the type flag.
PEP 3101 says (in the section on available integer types):
'n' - ...
I'm writing a test for a program that will be used in multiple locales. While running the test in German, i got the error
Traceback (most recent call last):
File "<stdin>", ...