Julian¶
-
class
kanon.calendars.calendars.
Julian
(era: kanon.calendars.calendars.Era, variant: str = '', months_mutation: Optional[Callable[[List[kanon.calendars.calendars.Month]], List[kanon.calendars.calendars.Month]]] = None)[source] [edit on github]¶ Bases:
kanon.calendars.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
- rtype
Era
Number of days in a leap year
List of months
Name of this calendar
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,kanon.calendars.Calendar
] = {'Arabic Astronomical Hijra': Calendar(Arabic Astronomical Hijra), 'Arabic Civil Hijra': Calendar(Arabic Civil Hijra), 'Byzantine/Syrian A.D.': Calendar(Byzantine/Syrian 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)}¶
Methods Documentation
-
from_julian_days
(jdn: float) →kanon.calendars.Date
[edit on github]¶ Builds a
Date
object at the specified julian day number.
-
get_time
(year: int, month: int, day: int) →astropy.time.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)