Author r.david.murray
Recipients jonathan.cervidae, r.david.murray
Date 2009-05-11.19:52:39
SpamBayes Score 2.95982e-08
Marked as misclassified No
Message-id <1242071563.82.0.883505745921.issue5997@psf.upfronthosting.co.za>
In-reply-to
Content
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'
History
Date User Action Args
2009-05-11 19:52:44r.david.murraysetrecipients: + r.david.murray, jonathan.cervidae
2009-05-11 19:52:43r.david.murraysetmessageid: <1242071563.82.0.883505745921.issue5997@psf.upfronthosting.co.za>
2009-05-11 19:52:41r.david.murraylinkissue5997 messages
2009-05-11 19:52:39r.david.murraycreate