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

Class 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)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
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

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from Calendar: firstweekday

Inherited from object: __class__

Method Details [hide private]

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

 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

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)