datetime64

Standard library class numpy.npdatetime.datetime64 View source
class datetime64
@tuple
class datetime64[base, num]
Fields 3
value int
base Literal[str]
num Literal[int]
Constructors 9
__new__
__new__()
__new__
__new__(value: int, base: Literal[str], num: Literal[int])
__new__
__new__(value: datetime64, 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__(dt: datetime64, unit: Literal[str])
__new__
__new__(s: str, unit: Literal[str] = "us")
__new__
__new__(dt: datetime.datetime, unit: Literal[str] = "us")
__new__
__new__(dt: datetime.date, unit: Literal[str] = "D")
Methods 1
tolist
tolist(self)
Special methods 12
__eq__
__eq__(self, other: datetime64)
__ne__
__ne__(self, other: datetime64)
__lt__
__lt__(self, other: datetime64)
__gt__
__gt__(self, other: datetime64)
__le__
__le__(self, other: datetime64)
__ge__
__ge__(self, other: datetime64)
__bool__
__bool__(self)
__add__
__add__(self, other)
__add__(self, other: timedelta64)
__add__(self, other: int)
__radd__
__radd__(self, other)
__radd__(self, other: int)
__sub__
__sub__(self, other)
__sub__(self, other: timedelta64)
__sub__(self, other: datetime64)
__sub__(self, other: int)
__repr__
__repr__(self)
__str__
__str__(self)