tzconversion.pyi 556 B

123456789101112131415161718192021
  1. from datetime import (
  2. timedelta,
  3. tzinfo,
  4. )
  5. from typing import Iterable
  6. import numpy as np
  7. from pandas._typing import npt
  8. # tz_convert_from_utc_single exposed for testing
  9. def tz_convert_from_utc_single(
  10. val: np.int64, tz: tzinfo, creso: int = ...
  11. ) -> np.int64: ...
  12. def tz_localize_to_utc(
  13. vals: npt.NDArray[np.int64],
  14. tz: tzinfo | None,
  15. ambiguous: str | bool | Iterable[bool] | None = ...,
  16. nonexistent: str | timedelta | np.timedelta64 | None = ...,
  17. creso: int = ..., # NPY_DATETIMEUNIT
  18. ) -> npt.NDArray[np.int64]: ...