Level 80 Level 82
Level 81

Date & Time: Calendar Module


8 words 0 ignored

Ready to learn       Ready to review

Ignore words

Check the boxes below to ignore/unignore words, then click save at the bottom. Ignored words will never appear in any learning session.

All None

Ignore?
calendar.setfirstweekday(weekday)
Change the first day of the week
calendar.firstweekday()
Returns the current setting for the weekday that starts each week
calendar.isleap(year)
Returns True if year is a leap year; otherwise, False
calendar.leapdays(year1, year2)
Returns the total number of leap days in the years within range
calendar.monthcalendar(year,month)
Returns a list of lists of ints. Each sublist denotes a week.
calendar.monthrange(year,month)
Returns two integers. the first one is the code of the weekday for the first day of the month month in year year; the second one is the number of days in the month.
calendar.timegm(tupletime)
Converting tupletime to floating-point number of seconds since the epoch
calendar.weekday(year,month,day)
Returns the weekday code for the given date