calendar
index
/usr/local/lib/python2.4/calendar.py
Module Docs

Calendar printing functions
 
Note when comparing these calendars to the ones printed by cal(1): By
default, these calendars have Monday as the first day of the week, and
Sunday as the last (the European convention). Use setfirstweekday() to
set the first day of the week (0=Monday, 6=Sunday).

 
Modules
       
datetime

 
Classes
       
exceptions.StandardError(exceptions.Exception)
exceptions.ValueError

 
error = class ValueError(StandardError)
    Inappropriate argument value (of correct type).
 
 
Method resolution order:
ValueError
StandardError
Exception

Methods inherited from Exception:
__getitem__(...)
__init__(...)
__str__(...)

 
Functions
       
calendar(year, w=0, l=0, c=6)
Returns a year's calendar as a multi-line string.
firstweekday()
isleap(year)
Return 1 for leap years, 0 for non-leap years.
leapdays(y1, y2)
Return number of leap years in range [y1, y2).
Assume y1 <= y2.
month(theyear, themonth, w=0, l=0)
Return a month's calendar string (multi-line).
monthcalendar(year, month)
Return a matrix representing a month's calendar.
Each row represents a week; days outside this month are zero.
monthrange(year, month)
Return weekday (0-6 ~ Mon-Sun) and number of days (28-31) for
year, month.
prcal(year, w=0, l=0, c=6)
Print a year's calendar.
prmonth(theyear, themonth, w=0, l=0)
Print a month's calendar.
setfirstweekday(weekday)
Set weekday (Monday=0, Sunday=6) to start each week.
timegm(tuple)
Unrelated but handy function to calculate Unix timestamp from GMT.
weekday(year, month, day)
Return weekday (0-6 ~ Mon-Sun) for year (1970-...), month (1-12),
day (1-31).

 
Data
        __all__ = ['error', 'setfirstweekday', 'firstweekday', 'isleap', 'leapdays', 'weekday', 'monthrange', 'monthcalendar', 'prmonth', 'month', 'prcal', 'calendar', 'timegm', 'month_name', 'month_abbr', 'day_name', 'day_abbr']
day_abbr = <calendar._localized_day instance>
day_name = <calendar._localized_day instance>
month_abbr = <calendar._localized_month instance>
month_name = <calendar._localized_month instance>