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