pub unsafe fn PyDateTime_GET_YEAR(o: *mut PyObject) -> c_int
Available on non-
Py_LIMITED_API
and neither PyPy
nor GraalPy
only.Expand description
Retrieve the year component of a PyDateTime_Date
or PyDateTime_DateTime
.
Returns a signed integer greater than 0.