yearOfWeek
Returns the year of the week for this date-time, if any.
Parameters
- self:PlainDateTime
- PlainDateTime
Source
Implementation
pub fn yearOfWeek(self: PlainDateTime) !?i32 {
const result = abi.c.temporal_rs_PlainDateTime_year_of_week(self._inner);
if (!result.is_ok) return null;
return result.unnamed_0.ok;
}