pytimber.ScaleInterval

class pytimber.ScaleInterval(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)

Methods

ScaleInterval.conjugate

Returns self, the complex conjugate of any int.

ScaleInterval.bit_length()

Number of bits necessary to represent self in binary.

ScaleInterval.bit_count()

Number of ones in the binary representation of the absolute value of self.

ScaleInterval.to_bytes([length, byteorder, ...])

Return an array of bytes representing an integer.

ScaleInterval.from_bytes([byteorder, signed])

Return the integer represented by the given array of bytes.

ScaleInterval.as_integer_ratio()

Return integer ratio.

ScaleInterval.value_of(value)

ScaleInterval.__init__(*args, **kwds)

Attributes

ScaleInterval.real

the real part of a complex number

ScaleInterval.imag

the imaginary part of a complex number

ScaleInterval.numerator

the numerator of a rational number in lowest terms

ScaleInterval.denominator

the denominator of a rational number in lowest terms

ScaleInterval.SECOND

ScaleInterval.MINUTE

ScaleInterval.HOUR

ScaleInterval.DAY

ScaleInterval.WEEK

ScaleInterval.MONTH

ScaleInterval.YEAR