calendar
index
/usr/lib/python1.5/calendar.py
 

###############################
# Calendar printing functions #
###############################

   
Functions
                        
asctime(...)
asctime(tuple) -> string
 
Convert a time tuple to a string, e.g. 'Sat Jun 06 16:26:11 1998'.
ctime(...)
ctime(seconds) -> string
 
Convert a time in seconds since the Epoch to a string in local time.
This is equivalent to asctime(localtime(seconds)).
gmtime(...)
gmtime(seconds) -> tuple
 
Convert seconds since the Epoch to a time tuple expressing UTC (a.k.a. GMT).
localtime(...)
localtime(seconds) -> tuple
Convert seconds since the Epoch to a time tuple expressing local time.
mktime(...)
mktime(tuple) -> floating point number
 
Convert a time tuple in local time to seconds since the Epoch.

   
Constants
                        
February = 2
January = 1
day_abbr = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
day_name = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday']
error = 'calendar.error'
mdays = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, ...]
month_abbr = [' ', 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', ...]
month_name = ['', 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', ...]