module timelinelib.calendar.gregorian.gregorian
Contains the GregorianDateTime class and static functions related
to the class.
Tests are found here.
-
class
timelinelib.calendar.gregorian.gregorian.
GregorianDateTime
[source]
Bases: object
-
__init__
(year, month, day, hour, minute, second)[source]
-
__eq__
(other)[source]
-
__ne__
(other)[source]
-
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]
-
timelinelib.calendar.gregorian.gregorian.
days_in_month
(year, month)[source]
-
timelinelib.calendar.gregorian.gregorian.
is_leap_year
(year)[source]
-
timelinelib.calendar.gregorian.gregorian.
is_valid_time
(hour, minute, second)[source]
-
timelinelib.calendar.gregorian.gregorian.
is_valid
(year, month, day)[source]