Hello all,
I wrote a script on UNIX that uses the following statements:

import locale, datetime
locale.setlocale(locale.LC_ALL, 'sv_Se')

with that, I can get localized dates like this

> datetime.datetime.today ().strftime('%A')
'Fredag'

problem is, this doesnt work on windows!
I get:

locale.Error: unsupported locale setting

how can I set the locale to Swedish on a windows box?
thanks for any insight you might have
-frank

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to