School/.venv/lib/python3.9/site-packages/pandas/_libs/tslibs/conversion.pyi
Kristofers Solo 1e065cc4b2 Updated .venv
2021-11-22 17:11:45 +02:00

28 lines
765 B
Python

from datetime import (
datetime,
tzinfo,
)
import numpy as np
DT64NS_DTYPE: np.dtype
TD64NS_DTYPE: np.dtype
class OutOfBoundsTimedelta(ValueError): ...
def precision_from_unit(
unit: str,
) -> tuple[int, int,]: ... # (int64_t, _)
def ensure_datetime64ns(
arr: np.ndarray, # np.ndarray[datetime64[ANY]]
copy: bool = ...,
) -> np.ndarray: ... # np.ndarray[datetime64ns]
def ensure_timedelta64ns(
arr: np.ndarray, # np.ndarray[timedelta64[ANY]]
copy: bool = ...,
) -> np.ndarray: ... # np.ndarray[timedelta64ns]
def datetime_to_datetime64(
values: np.ndarray, # np.ndarray[object]
) -> tuple[np.ndarray, tzinfo | None,]: ... # (np.ndarray[dt64ns], _)
def localize_pydatetime(dt: datetime, tz: tzinfo | None) -> datetime: ...