| |
- _center(str, width)
- # Center a string in a field
- _monthcalendar(year, month)
- # Return a matrix representing a month's calendar
- # Each row represents a week; days outside this month are zero
- asctime(no arg info)
- asctime(tuple) -> string
- Convert a time tuple to a string, e.g. 'Sat Jun 06 16:26:11 1998'.
- ctime(no arg info)
- ctime(seconds) -> string
- Convert a time in seconds since the Epoch to a string in local time.
- This is equivalent to asctime(localtime(seconds)).
- format3c(a, b, c)
- # 3-column formatting for year calendars
- gmtime(no arg info)
- gmtime(seconds) -> tuple
- Convert seconds since the Epoch to a time tuple expressing UTC (a.k.a. GMT).
- 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 and no funny (non-leap century) years
- localtime(no arg info)
- localtime(seconds) -> tuple
- Convert seconds since the Epoch to a time tuple expressing local time.
- mktime(no arg info)
- mktime(tuple) -> floating point number
- Convert a time tuple in local time to seconds since the Epoch.
- monthcalendar(year, month)
- # Caching interface to _monthcalendar
- monthrange(year, month)
- # Return weekday (0-6 ~ Mon-Sun) and number of days (28-31) for year, month
- prcal(year)
- # Print a year's calendar
- prmonth(year, month, w=0, l=0)
- # Print a month's calendar
- prweek(week, width)
- # Print a single week (no newline)
- weekday(year, month, day)
- # Return weekday (0-6 ~ Mon-Sun) for year (1970-...), month (1-12), day (1-31)
- weekheader(width)
- # Return a header for a week
|