How to get the date format from the users locale?

Chris Rebert clp2 at rebertia.com
Fri Jun 25 14:31:34 EDT 2010


On Fri, Jun 25, 2010 at 4:39 AM, Fabio Zadrozny <fabiofz at gmail.com> wrote:
> 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).

There is the %x format specifier in the time module, but it doesn't
actually tell you the format, it merely parses/outputs data in that
format; thus, it's rather opaque.
http://docs.python.org/library/time.html#time.strftime

Cheers,
Chris
--
http://blog.rebertia.com



More information about the Python-list mailing list