Type Alias ISOMoment

Source
pub type ISOMoment = CalendarMoment<ISO>;
Expand description

Represents a date and time in the ISO Calendar

Aliased Type§

pub struct ISOMoment { /* private fields */ }

Implementations§

Source§

impl ISOMoment

Source

pub fn year(self) -> i32

Source

pub fn week(self) -> NonZero<u8>

Source

pub fn day(self) -> Weekday

Note that the numeric values of the Weekday enum are not consistent with ISO-8601. Use day_num for the numeric day number.

Source

pub fn day_num(self) -> u8

Represents Sunday as 7 instead of 0, as required by ISO-8601.

Source

pub fn new_year(year: i32) -> Self