How to get the date format from the users locale?

F

Fabio Zadrozny

I'm trying to get the locale-aware date format but it doesn't seem to
be available through nl_langinfo in python 2.5.4 (windows vista).

Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit
(Intel)] onType "help", "copyright", "credits" or "license" for more
information.Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'nl_langinfo'


Is that what I should be using? Is there any other way for getting that info?

Thanks,

Fabio
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top