module timelinelib.calendar.coptic.coptic

timelinelib.calendar.coptic.coptic.FIRST_DAY = 1825030
class timelinelib.calendar.coptic.coptic.CopticDateTime[source]

Bases: object

__init__(year, month, day, hour, minute, second)[source]

Initialize self. See help(type(self)) for accurate signature.

__eq__(other)[source]

Return self==value.

__ne__(other)[source]

Return self!=value.

classmethod from_ymd(year, month, day)[source]
classmethod from_time(time)[source]
property week_number
is_bc()[source]
replace(year=None, month=None)[source]
days_in_month()[source]
to_tuple()[source]
to_date_tuple()[source]
to_time_tuple()[source]
to_time()[source]
is_first_day_in_year()[source]
is_first_of_month()[source]
__repr__()[source]

Return repr(self).

timelinelib.calendar.coptic.coptic.days_in_month(year, month)[source]
timelinelib.calendar.coptic.coptic.is_leap_year(year)[source]
timelinelib.calendar.coptic.coptic.num_leap_years(year)[source]
timelinelib.calendar.coptic.coptic.is_valid_time(hour, minute, second)[source]
timelinelib.calendar.coptic.coptic.is_valid(year, month, day)[source]
timelinelib.calendar.coptic.coptic.julian_day_to_coptic_ymd(julian_day)[source]

This calendar calculation was originally published in Explanatory Supplement to the Astronomical Almanac, S.E. Urban and P.K. Seidelman, Eds. (2012). You can purchase the book at uscibooks.com/urban.htm. “15.11 Calendar Conversion Algorithms” from the following pdf is used in the below code. https://aa.usno.navy.mil/publications/docs/c15_usb_online.pdf

timelinelib.calendar.coptic.coptic.coptic_ymd_to_julian_day(year, month, day)[source]

Coptic year 1 = Julian day 1825030