Skip to main content

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__() -> timedelta64[(base, num)]
__new__
__new__[base: Literal[str], num: Literal[int]](value: int) -> timedelta64[(base, num)]
__new__
__new__[base: Literal[str], num: Literal[int]](td: timedelta64) -> timedelta64[(base, num)]
__new__
__new__[base: Literal[str], num: Literal[int]](s: str) -> timedelta64[(base, num)]
__new__
__new__[unit: Literal[str]](value: int)
__new__
__new__[unit: Literal[str] = "generic"](td: timedelta64)
__new__
__new__[unit: Literal[str] = "generic"](s: str)
__new__
__new__[unit: Literal[str] = "us"](td: datetime.timedelta)
Methods 3
tolist
tolist(self: Self)
cdiv
cdiv(self: Self, other: timedelta64)
cmod
cmod(self: Self, other: timedelta64)
Special methods 22
__eq__
__eq__(self: Self, other: timedelta64)
__ne__
__ne__(self: Self, other: timedelta64)
__lt__
__lt__(self: Self, other: timedelta64)
__gt__
__gt__(self: Self, other: timedelta64)
__le__
__le__(self: Self, other: timedelta64)
__ge__
__ge__(self: Self, other: timedelta64)
__bool__
__bool__(self: Self)
__pos__
__pos__(self: Self)
__neg__
__neg__(self: Self)
__abs__
__abs__(self: Self)
__add__
__add__(self: Self, other)
__add__(self: Self, other: timedelta64)
__add__(self: Self, other: datetime64)
__add__(self: Self, other: int)
__radd__
__radd__(self: Self, other)
__radd__(self: Self, other: int)
__sub__
__sub__(self: Self, other)
__sub__(self: Self, other: timedelta64)
__sub__(self: Self, other: int)
__rsub__
__rsub__(self: Self, other)
__rsub__(self: Self, other: int)
__mul__
__mul__(self: Self, other)
__mul__(self: Self, other: float)
__mul__(self: Self, other: int)
__rmul__
__rmul__(self: Self, other)
__rmul__(self: Self, other: float)
__rmul__(self: Self, other: int)
__floordiv__
__floordiv__(self: Self, other)
__floordiv__(self: Self, other: timedelta64)
__floordiv__(self: Self, other: float)
__floordiv__(self: Self, other: int)
__truediv__
__truediv__(self: Self, other)
__truediv__(self: Self, other: timedelta64)
__truediv__(self: Self, other: float)
__truediv__(self: Self, other: int)
__mod__
__mod__(self: Self, other: timedelta64)
__divmod__
__divmod__(self: Self, other: timedelta64)
__repr__
__repr__(self: Self)
__str__
__str__(self: Self)