pyo3::ffi

Function PyDateTime_GET_YEAR

Source
pub unsafe fn PyDateTime_GET_YEAR(o: *mut PyObject) -> i32
Available on neither PyPy nor GraalPy.
Expand description

Retrieve the year component of a PyDateTime_Date or PyDateTime_DateTime. Returns a signed integer greater than 0.

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