Egyptian

class kanon.calendars.calendars.Egyptian(era: Era, variant: str = '', months_mutation: Callable[[List[Month]], List[Month]] | None = None)[source] [edit on github]

Bases: Calendar

Defines the Egyptian Calendar. https://en.wikipedia.org/wiki/Egyptian_calendar

Parameters:
  • era (Era) – Era used by this calendar.

  • variant (str, optional) – Name of this variant, defaults to “”

  • months_mutation (Optional[Callable[[List[Month]], List[Month]]], optional) – Function transforming the Calendar class months list , defaults to None

Raises:

ValueError – Raised when the calendar’s name has already been used.

Attributes Summary

common_year

Number of days in a common year

cycle

Cycle of common year and leap years (common, leap)

cycle_length

Number of days in a leap cycle

era

Calendar era

leap_year

Number of days in a leap year

months

List of months

name

Name of this calendar

registry

Registry of all calendars

Methods Summary

from_julian_days(jdn)

Builds a Date object at the specified julian day number.

get_time(year, month, day)

astropy.time.Time object at the specified date in ymd

intercalation(year)

Is the specified year an intercalation year (leap)

jdn_at_ymd(year, month, day)

Julian day number at the specified date in ymd

Attributes Documentation

common_year

Number of days in a common year

Return type:

int

cycle

Cycle of common year and leap years (common, leap)

Return type:

Tuple[int, int]

cycle_length

Number of days in a leap cycle

Return type:

int

era

Calendar era

Return type:

Era

leap_year

Number of days in a leap year

Return type:

int

months

List of months

Return type:

List[Month]

name

Name of this calendar

Return type:

str

registry: Dict[str, Calendar] = {'Arabic Astronomical Hijra': Calendar(Arabic Astronomical Hijra), 'Arabic Civil Hijra': Calendar(Arabic Civil Hijra), 'Byzantine A.D.': Calendar(Byzantine A.D.), 'Egyptian Nabonassar': Calendar(Egyptian Nabonassar), 'Egyptian Philippus': Calendar(Egyptian Philippus), 'Julian A.D.': Calendar(Julian A.D.), 'Julian A.D. First month March': Calendar(Julian A.D. First month March), 'Julian A.D. Leap December': Calendar(Julian A.D. Leap December), 'Julian Julian Era': Calendar(Julian Julian Era), 'Persian Yazdigird Andarjah after Ābān': Calendar(Persian Yazdigird Andarjah after Ābān), 'Persian Yazdigird Andarjah at the end': Calendar(Persian Yazdigird Andarjah at the end)}

Registry of all calendars

Methods Documentation

from_julian_days(jdn: float) Date [edit on github]

Builds a Date object at the specified julian day number.

get_time(year: int, month: int, day: int) Time [edit on github]

astropy.time.Time object at the specified date in ymd

intercalation(year: int) bool[source] [edit on github]

Is the specified year an intercalation year (leap)

jdn_at_ymd(year: int, month: int, day: int) float [edit on github]

Julian day number at the specified date in ymd