Function timezone_from_offset

Source
pub(crate) fn timezone_from_offset<'py>(
    offset: &Bound<'py, PyDelta>,
) -> PyResult<Bound<'py, PyTzInfo>>
Available on crate features chrono or jiff-02 only.
Expand description

Equivalent to datetime.timezone constructor

Only used internally

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