Message87584
Please read
http://docs.python.org/library/locale.html
specifically the docs for 'setlocale'. Before you call setlocale,
python's locale is 'C', just like for any C program before it calls
setlocale.
Python 2.6.2 (r262:71600, May 2 2009, 15:06:57)
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import locale
>>> import time
>>> time.strftime("%x")
'05/11/09'
>>> locale.setlocale(locale.LC_ALL,"")
'tr_TR.utf-8'
>>> time.strftime("%x")
'11-05-2009' |
|
Date |
User |
Action |
Args |
2009-05-11 19:52:44 | r.david.murray | set | recipients:
+ r.david.murray, jonathan.cervidae |
2009-05-11 19:52:43 | r.david.murray | set | messageid: <1242071563.82.0.883505745921.issue5997@psf.upfronthosting.co.za> |
2009-05-11 19:52:41 | r.david.murray | link | issue5997 messages |
2009-05-11 19:52:39 | r.david.murray | create | |
|