mirror of
https://github.com/kristoferssolo/School.git
synced 2025-10-21 20:10:38 +00:00
27 lines
724 B
Python
27 lines
724 B
Python
from datetime import tzinfo
|
|
|
|
import numpy as np
|
|
|
|
def format_array_from_datetime(
|
|
values: np.ndarray, # np.ndarray[np.int64]
|
|
tz: tzinfo | None = ...,
|
|
format: str | None = ...,
|
|
na_rep: object = ...,
|
|
) -> np.ndarray: ... # np.ndarray[object]
|
|
def array_with_unit_to_datetime(
|
|
values: np.ndarray,
|
|
unit: str,
|
|
errors: str = ...,
|
|
) -> tuple[np.ndarray, tzinfo | None]: ...
|
|
def array_to_datetime(
|
|
values: np.ndarray, # np.ndarray[object]
|
|
errors: str = ...,
|
|
dayfirst: bool = ...,
|
|
yearfirst: bool = ...,
|
|
utc: bool = ...,
|
|
require_iso8601: bool = ...,
|
|
allow_mixed: bool = ...,
|
|
) -> tuple[np.ndarray, tzinfo | None]: ...
|
|
|
|
# returned ndarray may be object dtype or datetime64[ns]
|