arrow_arith::temporal

Trait ChronoDateExt

Source
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§

Source

fn quarter(&self) -> u32

Returns a value in range 1..=4 indicating the quarter this date falls into

Source

fn quarter0(&self) -> u32

Returns a value in range 0..=3 indicating the quarter (zero-based) this date falls into

Source

fn num_days_from_monday(&self) -> i32

Returns the day of week; Monday is encoded as 0, Tuesday as 1, etc.

Source

fn num_days_from_sunday(&self) -> i32

Returns the day of week; Sunday is encoded as 0, Monday as 1, etc.

Implementors§