Python and i18n

дамјан г. mk at net.mail.penguinista
Mon Oct 20 05:59:44 EDT 2003


> My LANG environment variable is set to pt_BR.UTF-8 and when I run a
> date command:
...
> Does python support the pt_BR locale?? Am I doing something wrong??

import time, locale
locale.setlocale(locale.LC_ALL, "")
print time.strftime("%c")

-- 
Дамјан                                  (jabberID:damjan at bagra.net.mk)

            Secret hacker rule #11: hackers read manuals.




More information about the Python-list mailing list