Month
- class kanon.calendars.calendars.Month(days_cy: int, days_ly: Optional[int] = None, name: str = '', variant: Optional[List[str]] = None)[source] [edit on github]
Bases:
object
Dataclass defining a
Calendar
’s month.>>> Month(28, 29, 'Februarius', ['February']) Month(days_cy=28, days_ly=29, name='Februarius', variant=['February'])
- Parameters
days_cy – Number of days in a common year
days_ly – Number of days in a leap year, optional, defaults to
days_cy
valuename – Name of the month, optional, defaults to “”
variant – List of name variants of this month, optional
Attributes Summary
Methods Summary
days
([leap])Returns the month's number of days in common or leap year
Attributes Documentation
Methods Documentation
- days(leap=False) int [source] [edit on github]
Returns the month’s number of days in common or leap year
- Parameters
leap – Is it a leap year, defaults to False
- Return type