[Tutor] Exactly duplicating strftime behavior?

Hugo Arts hugo.yoshi at gmail.com
Mon Jan 17 23:58:32 CET 2011


On Mon, Jan 17, 2011 at 8:29 PM, Izz ad-Din Ruhulessin
<izzaddin.ruhulessin at gmail.com> wrote:
> Hi all,
> I'm designing a module which aims to provide full compatibility with
> Pythons' datetime module.
> However, I can't find out how some operators in strftime function, namely:
> those who use the locale. (%a, %A, %b, etc.)
> How do I access this locale and it's values?
> Thanks in advance.
> Kind regards,
> Izz ad-Din

Check out the locale module:

http://docs.python.org/library/locale.html#locale.nl_langinfo

HTH,
Hugo


More information about the Tutor mailing list