Julian
- class kanon.calendars.calendars.Julian(era: Era, variant: str = '', months_mutation: Callable[[List[Month]], List[Month]] | None = None)[source] [edit on github]
Bases:
Calendar
Defines the Julian Calendar. https://en.wikipedia.org/wiki/Julian_calendar
- Parameters:
- Raises:
ValueError – Raised when the calendar’s name has already been used.
Attributes Summary
Number of days in a common year
Cycle of common year and leap years (common, leap)
Number of days in a leap cycle
Calendar era
Number of days in a leap year
List of months
Name of this calendar
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 ymdintercalation
(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
- 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)