Module Import alias Import alias ImportFrom alias Assign NameStore ListLoad Str Str Str Str Str Str Str Str ClassDef bases NameLoad body Assign NameStore ListLoad Str Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareEq NameLoad AttributeLoad NameLoad attr body Return NameLoad orelse Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body If BoolOpOr CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return NameLoad handlers ExceptHandler type NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad TupleLoad Str Str Str Str Str Str Str Index AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body Return NameLoad orelse Return BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr decorator_list decorator_list Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore Call NameLoad ListComp Call NameLoad NameLoad comprehension NameStore Call NameLoad Num ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Num Num Num Num Num Num Num Num Num NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body If BoolOpAnd NameLoad NameLoad body If UnaryOpNot BoolOpAnd Call NameLoad NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad Str If CompareNotEq Call NameLoad NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr body If UnaryOpNot Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr orelse If UnaryOpNot Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign NameStore BinOpSub BinOpAdd BinOpMult AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr BinOpAdd BinOpMult AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareLt NameLoad NameLoad body While CompareGt NameLoad NameLoad body AugAssignAdd NameStore Num Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse While CompareLt NameLoad NameLoad body AugAssignSub NameStore Num Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpSub NameLoad NameLoad Assign AttributeStore NameLoad attr BinOpAdd AttributeLoad NameLoad attr BinOpMult AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr BinOpAdd NameLoad BinOpMult NameLoad Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If Call NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index NameLoad orelse Assign AttributeStore NameLoad attr NameLoad Assign NameStore Num If NameLoad body Assign NameStore NameLoad orelse If NameLoad body Assign NameStore NameLoad If CompareGt NameLoad Num body Assign AttributeStore NameLoad attr Num If NameLoad body Assign NameStore ListLoad Num Num Num Num Num Num Num Num Num Num Num Num For TupleStore NameStore NameStore Call NameLoad NameLoad body If CompareLtE NameLoad NameLoad body Assign AttributeStore NameLoad attr BinOpAdd NameLoad Num If CompareEq NameLoad Num body Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr BinOpSub NameLoad SubscriptLoad NameLoad Index BinOpSub NameLoad Num Break orelse Raise Call NameLoad BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If CompareGt Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore BinOpFloorDiv AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call NameLoad BinOpMult AttributeLoad NameLoad attr NameLoad Num Assign AttributeStore NameLoad attr BinOpMult NameLoad NameLoad AugAssignAdd AttributeStore NameLoad attr BinOpMult NameLoad NameLoad If CompareGt Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore BinOpFloorDiv AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call NameLoad BinOpMult AttributeLoad NameLoad attr NameLoad Num Assign AttributeStore NameLoad attr BinOpMult NameLoad NameLoad AugAssignAdd AttributeStore NameLoad attr BinOpMult NameLoad NameLoad If CompareGt Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore BinOpFloorDiv AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call NameLoad BinOpMult AttributeLoad NameLoad attr NameLoad Num Assign AttributeStore NameLoad attr BinOpMult NameLoad NameLoad AugAssignAdd AttributeStore NameLoad attr BinOpMult NameLoad NameLoad If CompareGt Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore BinOpFloorDiv AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call NameLoad BinOpMult AttributeLoad NameLoad attr NameLoad Num Assign AttributeStore NameLoad attr BinOpMult NameLoad NameLoad AugAssignAdd AttributeStore NameLoad attr BinOpMult NameLoad NameLoad If CompareGt Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore BinOpFloorDiv AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call NameLoad BinOpMult AttributeLoad NameLoad attr NameLoad Num Assign AttributeStore NameLoad attr BinOpMult NameLoad NameLoad AugAssignAdd AttributeStore NameLoad attr BinOpMult NameLoad NameLoad If BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareIsNot AttributeLoad NameLoad attr NameLoad CompareIsNot AttributeLoad NameLoad attr NameLoad CompareIsNot AttributeLoad NameLoad attr NameLoad CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Num orelse Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad If CompareGt Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore BinOpFloorDiv AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call NameLoad BinOpMult AttributeLoad NameLoad attr NameLoad Num Assign AttributeStore NameLoad attr BinOpMult NameLoad NameLoad Assign AttributeStore NameLoad attr BinOpMult NameLoad NameLoad orelse Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad NameLoad body Return Call NameLoad keyword BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If UnaryOpNot Call NameLoad NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad Str orelse If BoolOpAnd AttributeLoad NameLoad attr UnaryOpNot Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign NameStore BinOpAdd BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assert CompareLtELtE Num Call NameLoad AttributeLoad NameLoad attr Num AugAssignAdd NameStore AttributeLoad NameLoad attr If CompareGt NameLoad Num body AugAssignAdd NameStore Num AugAssignSub NameStore Num orelse If CompareLt NameLoad Num body AugAssignSub NameStore Num AugAssignAdd NameStore Num Assign NameStore Call NameLoad SubscriptLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Index Num BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str NameLoad NameLoad NameLoad For NameStore ListLoad Str Str Str Str body Assign NameStore Call NameLoad NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr If BoolOpAnd AttributeLoad NameLoad attr CompareGt NameLoad Num Call AttributeLoad NameLoad attr NameLoad body AugAssignAdd NameStore AttributeLoad NameLoad attr Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign TupleStore NameStore NameStore TupleLoad AttributeLoad AttributeLoad NameLoad attr attr BoolOpOr AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore BinOpMult BinOpSub Call NameLoad NameLoad Num Num If CompareGt NameLoad Num body AugAssignAdd NameStore BinOpMod BinOpAdd BinOpSub Num Call AttributeLoad NameLoad attr NameLoad Num orelse AugAssignAdd NameStore BinOpMod BinOpSub Call AttributeLoad NameLoad attr NameLoad Num AugAssignMult NameStore Num AugAssignAdd NameStore Call AttributeLoad NameLoad attr keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str Return Call NameLoad keyword BinOpSub AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword BinOpSub AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword BinOpSub AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword BinOpSub AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword BinOpSub AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword BinOpSub AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword BinOpSub AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad keyword UnaryOpUSub AttributeLoad NameLoad attr keyword UnaryOpUSub AttributeLoad NameLoad attr keyword UnaryOpUSub AttributeLoad NameLoad attr keyword UnaryOpUSub AttributeLoad NameLoad attr keyword UnaryOpUSub AttributeLoad NameLoad attr keyword UnaryOpUSub AttributeLoad NameLoad attr keyword UnaryOpUSub AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return UnaryOpNot BoolOpAnd UnaryOpNot AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr CompareIs AttributeLoad NameLoad attr NameLoad CompareIs AttributeLoad NameLoad attr NameLoad CompareIs AttributeLoad NameLoad attr NameLoad CompareIs AttributeLoad NameLoad attr NameLoad CompareIs AttributeLoad NameLoad attr NameLoad CompareIs AttributeLoad NameLoad attr NameLoad CompareIs AttributeLoad NameLoad attr NameLoad CompareIs AttributeLoad NameLoad attr NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Return Call NameLoad keyword Call NameLoad BinOpMult AttributeLoad NameLoad attr NameLoad keyword Call NameLoad BinOpMult AttributeLoad NameLoad attr NameLoad keyword Call NameLoad BinOpMult AttributeLoad NameLoad attr NameLoad keyword Call NameLoad BinOpMult AttributeLoad NameLoad attr NameLoad keyword Call NameLoad BinOpMult AttributeLoad NameLoad attr NameLoad keyword Call NameLoad BinOpMult AttributeLoad NameLoad attr NameLoad keyword Call NameLoad BinOpMult AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot Call NameLoad NameLoad NameLoad body Return NameLoad If BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If BoolOpOr UnaryOpNot AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr body Return NameLoad If CompareNotEq AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr body Return NameLoad Assign TupleStore NameStore NameStore TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr If BoolOpAnd CompareNotEq NameLoad NameLoad UnaryOpNot BoolOpAnd BoolOpOr UnaryOpNot NameLoad CompareEq NameLoad Num BoolOpOr UnaryOpNot NameLoad CompareEq NameLoad Num body Return NameLoad Return BoolOpAnd CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return UnaryOpNot Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr BinOpDiv Num Call NameLoad NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad For NameStore ListLoad Str Str Str Str Str Str Str Str body Assign NameStore Call NameLoad NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad For NameStore ListLoad Str Str Str Str Str Str Str Str body Assign NameStore Call NameLoad NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Call NameLoad NameLoad Return BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr NameLoad decorator_list decorator_list
N/A N/A datetime N/A calendar six integer_types N/A __all__ N/A relativedelta MO TU WE TH FR SA SU weekday N/A object N/A N/A __slots__ N/A weekday n __init__ N/A N/A self weekday n N/A None N/A N/A N/A self weekday weekday N/A N/A self n n N/A __call__ N/A N/A self n N/A N/A N/A N/A n N/A self n N/A N/A self N/A N/A N/A N/A self __class__ N/A self weekday n N/A __eq__ N/A N/A self other N/A N/A N/A N/A N/A N/A N/A N/A self weekday N/A other weekday N/A N/A self n N/A other n N/A N/A False N/A N/A N/A AttributeError N/A N/A False N/A True N/A __repr__ N/A N/A self N/A N/A N/A s N/A N/A MO TU WE TH FR SA SU N/A N/A self weekday N/A N/A N/A self n N/A N/A s N/A N/A N/A %s(%+d) N/A s N/A self n N/A N/A N/A N/A MO TU WE TH FR SA SU weekdays N/A tuple N/A N/A weekday x N/A x N/A range 7 relativedelta N/A object N/A N/A 
The relativedelta type is based on the specification of the excellent
work done by M.-A. Lemburg in his
`mx.DateTime <http://www.egenix.com/files/python/mxDateTime.html>`_ extension.
However, notice that this type does *NOT* implement the same algorithm as
his work. Do *NOT* expect it to behave like mx.DateTime's counterpart.

There are two different ways to build a relativedelta instance. The
first one is passing it two date/datetime classes::

    relativedelta(datetime1, datetime2)

The second one is passing it any number of the following keyword arguments::

    relativedelta(arg1=x,arg2=y,arg3=z...)

    year, month, day, hour, minute, second, microsecond:
        Absolute information (argument is singular); adding or subtracting a
        relativedelta with absolute information does not perform an aritmetic
        operation, but rather REPLACES the corresponding value in the
        original datetime with the value(s) in relativedelta.

    years, months, weeks, days, hours, minutes, seconds, microseconds:
        Relative information, may be negative (argument is plural); adding
        or subtracting a relativedelta with relative information performs
        the corresponding aritmetic operation on the original datetime value
        with the information in the relativedelta.  

    weekday:
        One of the weekday instances (MO, TU, etc). These instances may
        receive a parameter N, specifying the Nth weekday, which could
        be positive or negative (like MO(+1) or MO(-2). Not specifying
        it is the same as specifying +1. You can also use an integer,
        where 0=MO.

    leapdays:
        Will add given days to the date found, if year is a leap
        year, and the date found is post 28 of february.

    yearday, nlyearday:
        Set the yearday or the non-leap year day (jump leap days).
        These are converted to day/month/leapdays information.

Here is the behavior of operations with relativedelta:

1. Calculate the absolute year, using the 'year' argument, or the
   original datetime year, if the argument is not present.

2. Add the relative 'years' argument to the absolute year.

3. Do steps 1 and 2 for month/months.

4. Calculate the absolute day, using the 'day' argument, or the
   original datetime day, if the argument is not present. Then,
   subtract from the day until it fits in the year and month
   found after their operations.

5. Add the relative 'days' argument to the absolute day. Notice
   that the 'weeks' argument is multiplied by 7 and added to
   'days'.

6. Do steps 1 and 2 for hour/hours, minute/minutes, second/seconds,
   microsecond/microseconds.

7. If the 'weekday' argument is present, calculate the weekday,
   with the given (wday, nth) tuple. wday is the index of the
   weekday (0-6, 0=Mon), and nth is the number of weeks to add
   forward or backward, depending on its signal. Notice that if
   the calculated date is already Monday, for example, using
   (0, 1) or (0, -1) won't change the day.
     __init__ N/A N/A self dt1 dt2 years months days leapdays weeks hours minutes seconds microseconds year month day weekday yearday nlyearday hour minute second microsecond N/A None None 0 0 0 0 0 0 0 0 0 None None None None None None None None None None N/A N/A N/A dt1 dt2 N/A N/A N/A N/A N/A isinstance dt1 N/A datetime date N/A isinstance dt2 N/A datetime date N/A N/A N/A TypeError relativedelta only diffs datetime/date N/A N/A N/A isinstance dt1 N/A datetime datetime N/A isinstance dt2 N/A datetime datetime N/A N/A N/A N/A isinstance dt1 N/A datetime datetime N/A N/A dt1 N/A N/A N/A datetime datetime fromordinal N/A N/A dt1 toordinal N/A N/A N/A N/A isinstance dt2 N/A datetime datetime N/A N/A dt2 N/A N/A N/A datetime datetime fromordinal N/A N/A dt2 toordinal N/A N/A self years 0 N/A N/A self months 0 N/A N/A self days 0 N/A N/A self leapdays 0 N/A N/A self hours 0 N/A N/A self minutes 0 N/A N/A self seconds 0 N/A N/A self microseconds 0 N/A N/A self year None N/A N/A self month None N/A N/A self day None N/A N/A self weekday None N/A N/A self hour None N/A N/A self minute None N/A N/A self second None N/A N/A self microsecond None N/A N/A self _has_time 0 N/A months N/A N/A N/A N/A dt1 year 12 N/A dt1 month N/A N/A N/A dt2 year 12 N/A dt2 month N/A N/A N/A self _set_months months N/A dtm N/A N/A self __radd__ dt2 N/A N/A dt1 dt2 N/A N/A N/A dt1 dtm N/A N/A months 1 N/A N/A N/A self _set_months months N/A dtm N/A N/A self __radd__ dt2 N/A N/A N/A dt1 dtm N/A N/A months 1 N/A N/A N/A self _set_months months N/A dtm N/A N/A self __radd__ dt2 N/A delta N/A dt1 dtm N/A N/A self seconds N/A N/A delta seconds N/A N/A delta days 86400 N/A N/A self microseconds N/A delta microseconds N/A N/A N/A self years years N/A N/A self months months N/A N/A self days N/A days N/A weeks 7 N/A N/A self leapdays leapdays N/A N/A self hours hours N/A N/A self minutes minutes N/A N/A self seconds seconds N/A N/A self microseconds microseconds N/A N/A self year year N/A N/A self month month N/A N/A self day day N/A N/A self hour hour N/A N/A self minute minute N/A N/A self second second N/A N/A self microsecond microsecond N/A N/A isinstance weekday integer_types N/A N/A N/A self weekday N/A weekdays N/A weekday N/A N/A N/A self weekday weekday N/A yday 0 N/A nlyearday N/A N/A yday nlyearday N/A N/A yearday N/A N/A yday yearday N/A N/A yearday 59 N/A N/A N/A self leapdays -1 N/A yday N/A N/A ydayidx N/A 31 59 90 120 151 181 212 243 273 304 334 366 N/A N/A idx ydays N/A enumerate ydayidx N/A N/A N/A yday ydays N/A N/A N/A self month N/A idx 1 N/A N/A idx 0 N/A N/A N/A self day yday N/A N/A N/A self day N/A yday N/A ydayidx N/A N/A idx 1 N/A N/A N/A N/A ValueError N/A invalid year day (%d) yday N/A N/A N/A self _fix N/A _fix N/A N/A self N/A N/A N/A N/A N/A abs N/A self microseconds 999999 N/A N/A s N/A N/A self microseconds N/A abs N/A self microseconds N/A N/A div mod N/A divmod N/A N/A self microseconds s 1000000 N/A N/A self microseconds N/A mod s N/A N/A self seconds N/A div s N/A N/A N/A abs N/A self seconds 59 N/A N/A s N/A N/A self seconds N/A abs N/A self seconds N/A N/A div mod N/A divmod N/A N/A self seconds s 60 N/A N/A self seconds N/A mod s N/A N/A self minutes N/A div s N/A N/A N/A abs N/A self minutes 59 N/A N/A s N/A N/A self minutes N/A abs N/A self minutes N/A N/A div mod N/A divmod N/A N/A self minutes s 60 N/A N/A self minutes N/A mod s N/A N/A self hours N/A div s N/A N/A N/A abs N/A self hours 23 N/A N/A s N/A N/A self hours N/A abs N/A self hours N/A N/A div mod N/A divmod N/A N/A self hours s 24 N/A N/A self hours N/A mod s N/A N/A self days N/A div s N/A N/A N/A abs N/A self months 11 N/A N/A s N/A N/A self months N/A abs N/A self months N/A N/A div mod N/A divmod N/A N/A self months s 12 N/A N/A self months N/A mod s N/A N/A self years N/A div s N/A N/A N/A self hours N/A self minutes N/A self seconds N/A self microseconds N/A N/A self hour None N/A N/A self minute None N/A N/A self second None N/A N/A self microsecond None N/A N/A N/A self _has_time 1 N/A N/A N/A self _has_time 0 N/A _set_months N/A N/A self months N/A N/A N/A N/A self months months N/A N/A N/A abs N/A self months 11 N/A N/A s N/A N/A self months N/A abs N/A self months N/A N/A div mod N/A divmod N/A N/A self months s 12 N/A N/A self months N/A mod s N/A N/A self years N/A div s N/A N/A N/A self years 0 N/A __add__ N/A N/A self other N/A N/A N/A N/A isinstance other relativedelta N/A N/A N/A relativedelta years N/A N/A other years N/A self years months N/A N/A other months N/A self months days N/A N/A other days N/A self days hours N/A N/A other hours N/A self hours minutes N/A N/A other minutes N/A self minutes seconds N/A N/A other seconds N/A self seconds microseconds N/A N/A other microseconds N/A self microseconds leapdays N/A N/A other leapdays N/A self leapdays year N/A N/A other year N/A self year month N/A N/A other month N/A self month day N/A N/A other day N/A self day weekday N/A N/A other weekday N/A self weekday hour N/A N/A other hour N/A self hour minute N/A N/A other minute N/A self minute second N/A N/A other second N/A self second microsecond N/A N/A other microsecond N/A self microsecond N/A N/A N/A isinstance other N/A datetime date N/A N/A N/A TypeError unsupported type for add operation N/A N/A N/A N/A self _has_time N/A N/A isinstance other N/A datetime datetime N/A N/A other N/A N/A N/A datetime datetime fromordinal N/A N/A other toordinal N/A year N/A N/A N/A self year N/A other year N/A self years N/A month N/A N/A self month N/A other month N/A N/A self months N/A N/A N/A 1 N/A abs N/A self months 12 N/A month N/A self months N/A N/A month 12 N/A N/A year 1 N/A month 12 N/A N/A N/A month 1 N/A N/A year 1 N/A month 12 N/A day N/A min N/A N/A N/A calendar monthrange year month N/A 1 N/A N/A self day N/A other day N/A repl N/A year month day year month day N/A attr N/A hour minute second microsecond N/A N/A value N/A getattr self attr N/A N/A value None N/A N/A N/A repl N/A attr value N/A days N/A self days N/A N/A N/A self leapdays N/A month 2 N/A N/A calendar isleap year N/A N/A days N/A self leapdays N/A ret N/A N/A N/A other replace repl N/A N/A datetime timedelta days days hours N/A self hours minutes N/A self minutes seconds N/A self seconds microseconds N/A self microseconds N/A N/A self weekday N/A N/A N/A weekday nth N/A N/A N/A self weekday weekday N/A N/A N/A self weekday n 1 N/A jumpdays N/A N/A N/A abs nth 1 7 N/A N/A nth 0 N/A N/A jumpdays N/A N/A N/A 7 N/A N/A ret weekday weekday 7 N/A N/A jumpdays N/A N/A N/A N/A ret weekday weekday 7 N/A jumpdays -1 N/A ret N/A N/A datetime timedelta days jumpdays N/A ret N/A __radd__ N/A N/A self other N/A N/A N/A N/A N/A self __add__ other N/A __rsub__ N/A N/A self other N/A N/A N/A N/A N/A N/A N/A self __neg__ __radd__ other N/A __sub__ N/A N/A self other N/A N/A N/A N/A N/A isinstance other relativedelta N/A N/A N/A TypeError unsupported type for sub operation N/A N/A relativedelta years N/A N/A self years N/A other years months N/A N/A self months N/A other months days N/A N/A self days N/A other days hours N/A N/A self hours N/A other hours minutes N/A N/A self minutes N/A other minutes seconds N/A N/A self seconds N/A other seconds microseconds N/A N/A self microseconds N/A other microseconds leapdays N/A N/A self leapdays N/A other leapdays year N/A N/A self year N/A other year month N/A N/A self month N/A other month day N/A N/A self day N/A other day weekday N/A N/A self weekday N/A other weekday hour N/A N/A self hour N/A other hour minute N/A N/A self minute N/A other minute second N/A N/A self second N/A other second microsecond N/A N/A self microsecond N/A other microsecond N/A __neg__ N/A N/A self N/A N/A N/A N/A relativedelta years N/A N/A self years months N/A N/A self months days N/A N/A self days hours N/A N/A self hours minutes N/A N/A self minutes seconds N/A N/A self seconds microseconds N/A N/A self microseconds leapdays N/A self leapdays year N/A self year month N/A self month day N/A self day weekday N/A self weekday hour N/A self hour minute N/A self minute second N/A self second microsecond N/A self microsecond N/A __bool__ N/A N/A self N/A N/A N/A N/A N/A N/A N/A self years N/A N/A self months N/A N/A self days N/A N/A self hours N/A N/A self minutes N/A N/A self seconds N/A N/A self microseconds N/A N/A self leapdays N/A N/A self year None N/A N/A self month None N/A N/A self day None N/A N/A self weekday None N/A N/A self hour None N/A N/A self minute None N/A N/A self second None N/A N/A self microsecond None N/A N/A __nonzero__ __bool__ __mul__ N/A N/A self other N/A N/A N/A f N/A float other N/A N/A relativedelta years N/A int N/A N/A self years f months N/A int N/A N/A self months f days N/A int N/A N/A self days f hours N/A int N/A N/A self hours f minutes N/A int N/A N/A self minutes f seconds N/A int N/A N/A self seconds f microseconds N/A int N/A N/A self microseconds f leapdays N/A self leapdays year N/A self year month N/A self month day N/A self day weekday N/A self weekday hour N/A self hour minute N/A self minute second N/A self second microsecond N/A self microsecond N/A N/A __rmul__ __mul__ __eq__ N/A N/A self other N/A N/A N/A N/A N/A isinstance other relativedelta N/A N/A False N/A N/A N/A self weekday N/A other weekday N/A N/A N/A N/A N/A self weekday N/A N/A other weekday N/A N/A False N/A N/A N/A N/A self weekday weekday N/A N/A other weekday weekday N/A N/A False N/A N/A n1 n2 N/A N/A N/A self weekday n N/A N/A other weekday n N/A N/A N/A n1 n2 N/A N/A N/A N/A n1 N/A n1 1 N/A N/A n2 N/A n2 1 N/A N/A False N/A N/A N/A N/A self years N/A other years N/A N/A self months N/A other months N/A N/A self days N/A other days N/A N/A self hours N/A other hours N/A N/A self minutes N/A other minutes N/A N/A self seconds N/A other seconds N/A N/A self leapdays N/A other leapdays N/A N/A self year N/A other year N/A N/A self month N/A other month N/A N/A self day N/A other day N/A N/A self hour N/A other hour N/A N/A self minute N/A other minute N/A N/A self second N/A other second N/A N/A self microsecond N/A other microsecond N/A __ne__ N/A N/A self other N/A N/A N/A N/A N/A N/A self __eq__ other N/A __div__ N/A N/A self other N/A N/A N/A N/A N/A self __mul__ N/A 1 N/A float other N/A N/A __truediv__ __div__ __repr__ N/A N/A self N/A N/A N/A l N/A N/A attr N/A years months days leapdays hours minutes seconds microseconds N/A N/A value N/A getattr self attr N/A value N/A N/A N/A N/A l append N/A %s=%+d N/A attr value N/A attr N/A year month day weekday hour minute second microsecond N/A N/A value N/A getattr self attr N/A N/A value None N/A N/A N/A N/A l append N/A %s=%s N/A attr N/A repr value N/A N/A %s(%s) N/A N/A N/A self __class__ __name__ N/A N/A ,  join l N/A N/A