Localized month names?

Jarek Zgoda jzgoda at o2.usun.pl
Mon Mar 13 22:54:37 CET 2006


How do I get a list of localized month names for current locale? The
first thing that came to my mind was an ugly hack:

import datetime
for i in range(12):
    # as I remember, all months in 2005 had 1st in days
    datetime.date(2005, i + 1, 1).strftime('%B')

but I am sure there is a better way...

-- 
Jarek Zgoda
http://jpa.berlios.de/



More information about the Python-list mailing list