Module calendar :: Class LocaleTextCalendar
[hide private]
[frames] | no frames]

type LocaleTextCalendar

object --+        
         |        
  Calendar --+    
             |    
  TextCalendar --+
                 |
                LocaleTextCalendar

This class can be passed a locale name in the constructor and will return month and weekday names in the specified locale. If this locale includes an encoding all strings containing month and weekday names will be returned as unicode.

Instance Methods [hide private]
 
__init__(self, firstweekday=0, locale=None)
 
formatweekday(self, day, width)
Returns a formatted week day name.
 
formatmonthname(self, theyear, themonth, width, withyear=True)
Return a formatted month name.

Inherited from TextCalendar: formatday, formatmonth, formatweek, formatweekheader, formatyear, prmonth, prweek, pryear

Inherited from Calendar: getfirstweekday, itermonthdates, itermonthdays, itermonthdays2, iterweekdays, monthdatescalendar, monthdays2calendar, monthdayscalendar, setfirstweekday, yeardatescalendar, yeardays2calendar, yeardayscalendar

Properties [hide private]

Inherited from Calendar: firstweekday

Method Details [hide private]

__init__(self, firstweekday=0, locale=None)
(Constructor)

 
Overrides: Calendar.__init__

formatweekday(self, day, width)

 

Returns a formatted week day name.

Overrides: TextCalendar.formatweekday
(inherited documentation)

formatmonthname(self, theyear, themonth, width, withyear=True)

 

Return a formatted month name.

Overrides: TextCalendar.formatmonthname
(inherited documentation)