pyo3::conversions::jiff

Function datetime_to_pydatetime

Source
fn datetime_to_pydatetime<'py>(
    py: Python<'py>,
    datetime: &DateTime,
    fold: bool,
    timezone: Option<&TimeZone>,
) -> PyResult<Bound<'py, PyDateTime>>
Available on crate feature jiff-01 and non-Py_LIMITED_API only.
⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here