Function PyDateTime_GET_YEAR
pub unsafe fn PyDateTime_GET_YEAR(o: *mut PyObject) -> i32 ⓘ
Available on crate features
dep_pyo3
and std
only.Expand description
Retrieve the year component of a PyDateTime_Date
or PyDateTime_DateTime
.
Returns a signed integer greater than 0.