module numpy.npdatetime¶
Source: stdlib/numpy/npdatetime.codon
numpy.npdatetime¶Source: stdlib/numpy/npdatetime.codon
DatetimeMetaData @tuple Class is named tuple (cannot write fields) ¶base: i32¶num: i32¶timedelta64[base,num] @tuple Class is named tuple (cannot write fields) ¶value: int¶base: Literal[str]¶num: Literal[int]¶datetime64[base,num] @tuple Class is named tuple (cannot write fields) ¶value: int¶base: Literal[str]¶num: Literal[int]¶datetimestruct¶year: int¶month: i32¶day: i32¶hour: i32¶min: i32¶sec: i32¶us: i32¶ps: i32¶as_: i32¶DatetimeMetaData @extend Class is extended to add given methods ¶__new__(base: int, num: int = 1)¶__new__(base: Literal[str], num: int = 1)¶__new__(dt: datetime64)¶__new__(td: timedelta64)¶divisor_to_multiple(self, den: int, metastr: str)¶conversion_factor(self, dst: DatetimeMetaData)¶timedelta64[base,num] @extend Class is extended to add given methods ¶_nat @property Method is a class property ¶__new__()¶__new__(value: int, base: Literal[str], num: Literal[int])¶__new__(td: timedelta64, base: Literal[str], num: Literal[int])¶__new__(s: str, base: Literal[str], num: Literal[int])¶__new__(value: int, unit: Literal[str])¶__new__(td: timedelta64, unit: Literal[str] = "generic")¶__new__(s: str, unit: Literal[str] = "generic")¶__new__(td: datetime.timedelta, unit: Literal[str] = "us")¶__eq__(self, other: timedelta64)¶__ne__(self, other: timedelta64)¶__lt__(self, other: timedelta64)¶__gt__(self, other: timedelta64)¶__le__(self, other: timedelta64)¶__ge__(self, other: timedelta64)¶__bool__(self)¶__pos__(self)¶__neg__(self)¶__abs__(self)¶__add__(self, other)¶__radd__(self, other)¶__add__(self, other: timedelta64)¶__add__(self, other: datetime64)¶__add__(self, other: int)¶__radd__(self, other: int)¶__sub__(self, other)¶__rsub__(self, other)¶__sub__(self, other: timedelta64)¶__sub__(self, other: int)¶__rsub__(self, other: int)¶__mul__(self, other)¶__rmul__(self, other)¶__mul__(self, other: float)¶__rmul__(self, other: float)¶__mul__(self, other: int)¶__rmul__(self, other: int)¶__floordiv__(self, other)¶__floordiv__(self, other: timedelta64)¶__floordiv__(self, other: float)¶__floordiv__(self, other: int)¶__truediv__(self, other)¶__truediv__(self, other: timedelta64)¶__truediv__(self, other: float)¶__truediv__(self, other: int)¶__mod__(self, other: timedelta64)¶__divmod__(self, other: timedelta64)¶__repr__(self)¶__str__(self)¶tolist(self)¶datetime64[base,num] @extend Class is extended to add given methods ¶_nat @property Method is a class property ¶__new__()¶__new__(value: int, base: Literal[str], num: Literal[int])¶__new__(value: datetime64, base: Literal[str], num: Literal[int])¶__new__(s: str, base: Literal[str], num: Literal[int])¶__new__(value: int, unit: Literal[str])¶__new__(dt: datetime64, unit: Literal[str])¶__new__(s: str, unit: Literal[str] = "us")¶__new__(dt: datetime.datetime, unit: Literal[str] = "us")¶__new__(dt: datetime.date, unit: Literal[str] = "D")¶__eq__(self, other: datetime64)¶__ne__(self, other: datetime64)¶__lt__(self, other: datetime64)¶__gt__(self, other: datetime64)¶__le__(self, other: datetime64)¶__ge__(self, other: datetime64)¶__bool__(self)¶__add__(self, other)¶__radd__(self, other)¶__add__(self, other: timedelta64)¶__add__(self, other: int)¶__radd__(self, other: int)¶__sub__(self, other)¶__sub__(self, other: timedelta64)¶__sub__(self, other: datetime64)¶__sub__(self, other: int)¶__repr__(self)¶__str__(self)¶tolist(self)¶datetimestruct @extend Class is extended to add given methods ¶datetime @property Method is a class property ¶days @property Method is a class property ¶minutes @property Method is a class property ¶__init__(self)¶__init__(self, s: str)¶__init__(self, dt: datetime.datetime)¶__str__(self)¶reset(self)¶copy_to(self, other: datetimestruct)¶set_days(self, days: int)¶add_minutes(self, minutes: i32)¶to_datetime64(self, meta: DatetimeMetaData)¶from_datetime64(self, meta: DatetimeMetaData, dt: int)¶utc_to_local(self, out: datetimestruct)¶lossless_unit(self)¶parse_iso8601(self, s: str)¶to_str(self, unit: int, local: bool = False, utc: bool = False, tzoffset: int = -1)¶busdaycalendar¶__init__(self, weekmask = "1111100", holidays = None)¶