eraYear
Returns the year of this year-month within the era, or null if not applicable.
Parameters
- self:PlainYearMonth
- PlainYearMonth
Source
Implementation
pub fn eraYear(self: PlainYearMonth) ?i32 {
const result = abi.c.temporal_rs_PlainYearMonth_era_year(self._inner);
if (!result.is_ok) return null;
return result.unnamed_0.ok;
}