mirror of
https://github.com/kristoferssolo/School.git
synced 2025-10-21 20:10:38 +00:00
20 lines
565 B
Python
20 lines
565 B
Python
from datetime import (
|
|
timedelta,
|
|
tzinfo,
|
|
)
|
|
from typing import Iterable
|
|
|
|
import numpy as np
|
|
|
|
def tz_convert_from_utc(
|
|
vals: np.ndarray, # const int64_t[:]
|
|
tz: tzinfo,
|
|
) -> np.ndarray: ... # np.ndarray[np.int64]
|
|
def tz_convert_from_utc_single(val: np.int64, tz: tzinfo) -> np.int64: ...
|
|
def tz_localize_to_utc(
|
|
vals: np.ndarray, # np.ndarray[np.int64]
|
|
tz: tzinfo | None,
|
|
ambiguous: str | bool | Iterable[bool] | None = None,
|
|
nonexistent: str | timedelta | np.timedelta64 | None = None,
|
|
) -> np.ndarray: ... # np.ndarray[np.int64]
|