On this page
calendar.weekheader
Prev: calendar.weekday | Up: calendar
Rel: calendar.calendar, calendar.Calendar, calendar.Day, calendar.firstweekday
Ref: docs.python.org — calendar.weekheader
Tags: #public #python3 #stdlib #calendar
Import
import calendar
from calendar import weekheader
Signature & Overview
calendar.weekheader(width)
Return a header for a week.
Usage
import calendar
assert calendar.weekheader(3).startswith("Mon Tue Wed")
Gotchas
- Respects
firstweekday():width=2gives"Mo Tu ...",width=3gives"Mon Tue ...".
REPL Inspect
from calendar import weekheader
help(weekheader)
Linked from
Related notes
- tuts/python3/stdlib_module/calendar/weekday Linked here; links to this page; shared tags: #calendar, #stdlib
- tuts/python3/stdlib_module/calendar/calendar Linked here; shared tags: #calendar, #stdlib
- tuts/python3/stdlib_module/calendar/Calendar_class Linked here; shared tags: #calendar, #stdlib
- tuts/python3/stdlib_module/calendar/Day Linked here; shared tags: #calendar, #stdlib
- tuts/python3/stdlib_module/calendar/firstweekday Linked here; shared tags: #calendar, #stdlib
- tuts/python3/stdlib_module/calendar links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/calendar/HTMLCalendar shared tags: #calendar, #stdlib
- tuts/python3/stdlib_module/calendar/IllegalMonthError shared tags: #calendar, #stdlib
- tuts/python3/stdlib_module/calendar/IllegalWeekdayError shared tags: #calendar, #stdlib
- tuts/python3/stdlib_module/calendar/isleap shared tags: #calendar, #stdlib