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

type 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)
 
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

Class Variables [hide private]

Inherited from HTMLCalendar: cssclasses

Properties [hide private]

Inherited from Calendar: firstweekday

Method Details [hide private]

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

 
Overrides: Calendar.__init__

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)