zcollection.merging.period.PeriodRelation#
- class zcollection.merging.period.PeriodRelation(value, names=None, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]#
Bases:
IntEnum
Enumeration of the relations which can exist between two periods.
Attributes
The first period is after.
The first period is after, but the start date of the first period is the same date as the end date of the second period.
The start date of the first period is inside the second period.
The start date of the first period is same as the first date of the second period and the end date is inside the first period.
The first period is inside the second period and the start date of the two periods are the same.
The second period is inside the first period.
The second period is inside the first period and the end date of the two periods are the same.
The two periods are exactly the same.
The first period is inside the second period.
The first period is inside the second period and the end date of the two periods are the same.
The end date of the first period is inside the second period.
The end date of the first period is same as the start date of the second period.
The first period is before the second period.
the denominator of a rational number in lowest terms
the imaginary part of a complex number
the numerator of a rational number in lowest terms
the real part of a complex number
Public Methods
is_after
()Return true if the relation is after.
Return true if the relation is before.
contains
()Return true if one period enclosing the other period.
Return true if one period is before but there is an overlap between the two periods.
Return true if one period is after but there is an overlap between the two periods.
Return true if one period is inside the other period.
Special Methods
__format__
(format_spec, /)Convert to a string according to format_spec.
__new__
(value)Inherited Methods
Return a pair of integers, whose ratio is equal to the original int.
Number of ones in the binary representation of the absolute value of self.
Number of bits necessary to represent self in binary.
Returns self, the complex conjugate of any int.
from_bytes
([byteorder, signed])Return the integer represented by the given array of bytes.
Returns True.
to_bytes
([length, byteorder, signed])Return an array of bytes representing an integer.