trait ChronoDateExt {
// Required methods
fn quarter(&self) -> u32;
fn quarter0(&self) -> u32;
fn num_days_from_monday(&self) -> i32;
fn num_days_from_sunday(&self) -> i32;
}
Required Methods§
Sourcefn quarter(&self) -> u32
fn quarter(&self) -> u32
Returns a value in range 1..=4
indicating the quarter this date falls into
Sourcefn quarter0(&self) -> u32
fn quarter0(&self) -> u32
Returns a value in range 0..=3
indicating the quarter (zero-based) this date falls into
Sourcefn num_days_from_monday(&self) -> i32
fn num_days_from_monday(&self) -> i32
Returns the day of week; Monday is encoded as 0
, Tuesday as 1
, etc.
Sourcefn num_days_from_sunday(&self) -> i32
fn num_days_from_sunday(&self) -> i32
Returns the day of week; Sunday is encoded as 0
, Monday as 1
, etc.