pyo3::types::datetime

Function timezone_from_offset

Source
pub(crate) fn timezone_from_offset<'py>(
    offset: &Bound<'py, PyDelta>,
) -> PyResult<Bound<'py, PyTzInfo>>
Available on non-Py_LIMITED_API and crate feature chrono only.
Expand description

Equivalent to datetime.timezone constructor

Only used internally

⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here