Function pyo3::types::datetime::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