TemporalZ

yearOfWeek

Returns the year of the week for this date, if any.

Parameters

#
self:PlainDate
PlainDate

Source

Implementation

#
pub fn yearOfWeek(self: PlainDate) ?i32 {
    const result = abi.c.temporal_rs_PlainDate_year_of_week(self._inner);
    if (!result.is_ok) return null;
    return result.unnamed_0.ok;
}