tslib.pyi 724 B

1234567891011121314151617181920212223242526
  1. from datetime import tzinfo
  2. import numpy as np
  3. def format_array_from_datetime(
  4. values: np.ndarray, # np.ndarray[np.int64]
  5. tz: tzinfo | None = ...,
  6. format: str | None = ...,
  7. na_rep: object = ...,
  8. ) -> np.ndarray: ... # np.ndarray[object]
  9. def array_with_unit_to_datetime(
  10. values: np.ndarray,
  11. unit: str,
  12. errors: str = ...,
  13. ) -> tuple[np.ndarray, tzinfo | None]: ...
  14. def array_to_datetime(
  15. values: np.ndarray, # np.ndarray[object]
  16. errors: str = ...,
  17. dayfirst: bool = ...,
  18. yearfirst: bool = ...,
  19. utc: bool = ...,
  20. require_iso8601: bool = ...,
  21. allow_mixed: bool = ...,
  22. ) -> tuple[np.ndarray, tzinfo | None]: ...
  23. # returned ndarray may be object dtype or datetime64[ns]