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

Class LocaleHTMLCalendar

object --+        
         |        
  Calendar --+    
             |    
  HTMLCalendar --+
                 |
                LocaleHTMLCalendar

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)
Return a weekday name as a table header.
 
formatmonthname(self, theyear, themonth, withyear=True)
Return a month name as a table row.

Inherited from HTMLCalendar: formatday, formatmonth, formatweek, formatweekheader, formatyear, formatyearpage

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__

Class Variables [hide private]

Inherited from HTMLCalendar: cssclasses

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)

 

Return a weekday name as a table header.

Overrides: HTMLCalendar.formatweekday
(inherited documentation)

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

 

Return a month name as a table row.

Overrides: HTMLCalendar.formatmonthname
(inherited documentation)