Skip to main content

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__() -> datetime64[(base, num)]
__new__
__new__[base: Literal[str], num: Literal[int]](value: int) -> datetime64[(base, num)]
__new__
__new__[base: Literal[str], num: Literal[int]](value: datetime64) -> datetime64[(base, num)]
__new__
__new__[base: Literal[str], num: Literal[int]](s: str) -> datetime64[(base, num)]
__new__
__new__[unit: Literal[str]](value: int)
__new__
__new__[unit: Literal[str]](dt: datetime64)
__new__
__new__[unit: Literal[str] = "us"](s: str)
__new__
__new__[unit: Literal[str] = "us"](dt: datetime.datetime)
__new__
__new__[unit: Literal[str] = "D"](dt: datetime.date)
Methods 1
tolist
tolist(self: Self)
Special methods 12
__eq__
__eq__(self: Self, other: datetime64)
__ne__
__ne__(self: Self, other: datetime64)
__lt__
__lt__(self: Self, other: datetime64)
__gt__
__gt__(self: Self, other: datetime64)
__le__
__le__(self: Self, other: datetime64)
__ge__
__ge__(self: Self, other: datetime64)
__bool__
__bool__(self: Self)
__add__
__add__(self: Self, other)
__add__(self: Self, other: timedelta64)
__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: datetime64)
__sub__(self: Self, other: int)
__repr__
__repr__(self: Self)
__str__
__str__(self: Self)