timedelta64

Standard library class numpy.npdatetime.timedelta64 View source
class timedelta64
@tuple
class timedelta64[base, num]
Fields 3
value int
base Literal[str]
num Literal[int]
Constructors 8
__new__
__new__()
__new__
__new__(value: int, base: Literal[str], num: Literal[int])
__new__
__new__(td: timedelta64, base: Literal[str], num: Literal[int])
__new__
__new__(s: str, base: Literal[str], num: Literal[int])
__new__
__new__(value: int, unit: Literal[str])
__new__
__new__(td: timedelta64, unit: Literal[str] = "generic")
__new__
__new__(s: str, unit: Literal[str] = "generic")
__new__
__new__(td: datetime.timedelta, unit: Literal[str] = "us")
Methods 3
tolist
tolist(self)
cdiv
cdiv(self, other: timedelta64)
cmod
cmod(self, other: timedelta64)
Special methods 22
__eq__
__eq__(self, other: timedelta64)
__ne__
__ne__(self, other: timedelta64)
__lt__
__lt__(self, other: timedelta64)
__gt__
__gt__(self, other: timedelta64)
__le__
__le__(self, other: timedelta64)
__ge__
__ge__(self, other: timedelta64)
__bool__
__bool__(self)
__pos__
__pos__(self)
__neg__
__neg__(self)
__abs__
__abs__(self)
__add__
__add__(self, other)
__add__(self, other: timedelta64)
__add__(self, other: datetime64)
__add__(self, other: int)
__radd__
__radd__(self, other)
__radd__(self, other: int)
__sub__
__sub__(self, other)
__sub__(self, other: timedelta64)
__sub__(self, other: int)
__rsub__
__rsub__(self, other)
__rsub__(self, other: int)
__mul__
__mul__(self, other)
__mul__(self, other: float)
__mul__(self, other: int)
__rmul__
__rmul__(self, other)
__rmul__(self, other: float)
__rmul__(self, other: int)
__floordiv__
__floordiv__(self, other)
__floordiv__(self, other: timedelta64)
__floordiv__(self, other: float)
__floordiv__(self, other: int)
__truediv__
__truediv__(self, other)
__truediv__(self, other: timedelta64)
__truediv__(self, other: float)
__truediv__(self, other: int)
__mod__
__mod__(self, other: timedelta64)
__divmod__
__divmod__(self, other: timedelta64)
__repr__
__repr__(self)
__str__
__str__(self)