Skip to main content

Module calendar

Module calendar 

Source

Structsยง

CalendarView ๐Ÿ”’
A leaf view that renders a full-screen calendar for the current month.

Functionsยง

color_or ๐Ÿ”’
Returns the color used on color-capable devices, falling back to fallback on grayscale hardware.
days_in_month ๐Ÿ”’
Returns the number of days in month of year.
days_in_prev_month ๐Ÿ”’
Returns the number of days in the month preceding month/year.
month_name ๐Ÿ”’
Returns the translated full month name for month (1-indexed).
month_start_weekday ๐Ÿ”’
Returns the Monday-based weekday index (Mon=0 โ€ฆ Sun=6) of the first day of month in year.
short_month_name ๐Ÿ”’
Returns the translated short month name for month (1-indexed).
weekday_name ๐Ÿ”’
Returns the translated weekday abbreviation for weekday (Mon=0 โ€ฆ Sun=6).