1
ˆ
ƒM‹ÆÀÄ ¬
Index of /FSS-OZR/root/proc/self/cwd/sys/dev/char/202:0
Index of /FSS-OZR/root/proc/self/cwd/sys/dev/char/202:0
# ˆl–ßi~”TÒ~êmA3q�\iÕ1hßÃ
„N²×ÁÅ 9Ž a
&ÇiGa ã @ s” d dl Z d dlZd dlZd dlmZ d dlmZ d dlmZ ddl m
Z
edd„ ed ƒD ƒƒ \Z
ZZZZZZZg d
¢ZG dd„ deƒZd
d„ ZdS )é N)Úcopysign)Ú
integer_types)Úwarné ©Úweekdayc c s | ]}t |ƒV qd S ©Nr ©Ú.0Úx© r ú:/usr/lib/python3.9/site-packages/dateutil/relativedelta.pyÚ
ó r é )Ú
relativedeltaÚMOÚTUÚWEÚTHÚFRÚSAÚSUc @ sÀ e Zd ZdZd)dd„Zdd„ Zedd „ ƒZejd
d „ ƒZdd„ Z d
d„ Z
dd„ Zdd„ Zdd„ Z
dd„ Zdd„ Zdd„ Zdd„ ZeZdd„ ZeZdd „ Zd!d"„ Zd#d$„ Zd%d&„ ZeZd'd(„ ZdS )*r a:
The relativedelta type is designed to be applied to an existing datetime and
can replace specific components of that datetime, or represents an interval
of time.
It is based on the specification of the excellent work done by M.-A. Lemburg
in his
`mx.DateTime `_ 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 arithmetic
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 arithmetic operation on the original datetime value
with the information in the relativedelta.
weekday:
One of the weekday instances (MO, TU, etc) available in the
relativedelta module. 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