arrow_arith::numeric

Trait TimestampOp

Source
trait TimestampOp: ArrowTimestampType {
    type Duration: ArrowPrimitiveType<Native = i64>;

    // Required methods
    fn add_year_month(timestamp: i64, delta: i32, tz: Tz) -> Option<i64>;
    fn add_day_time(
        timestamp: i64,
        delta: IntervalDayTime,
        tz: Tz,
    ) -> Option<i64>;
    fn add_month_day_nano(
        timestamp: i64,
        delta: IntervalMonthDayNano,
        tz: Tz,
    ) -> Option<i64>;
    fn sub_year_month(timestamp: i64, delta: i32, tz: Tz) -> Option<i64>;
    fn sub_day_time(
        timestamp: i64,
        delta: IntervalDayTime,
        tz: Tz,
    ) -> Option<i64>;
    fn sub_month_day_nano(
        timestamp: i64,
        delta: IntervalMonthDayNano,
        tz: Tz,
    ) -> Option<i64>;
}
Expand description

Arithmetic trait for timestamp arrays

Required Associated Types§

Source

type Duration: ArrowPrimitiveType<Native = i64>

Required Methods§

Source

fn add_year_month(timestamp: i64, delta: i32, tz: Tz) -> Option<i64>

Source

fn add_day_time(timestamp: i64, delta: IntervalDayTime, tz: Tz) -> Option<i64>

Source

fn add_month_day_nano( timestamp: i64, delta: IntervalMonthDayNano, tz: Tz, ) -> Option<i64>

Source

fn sub_year_month(timestamp: i64, delta: i32, tz: Tz) -> Option<i64>

Source

fn sub_day_time(timestamp: i64, delta: IntervalDayTime, tz: Tz) -> Option<i64>

Source

fn sub_month_day_nano( timestamp: i64, delta: IntervalMonthDayNano, tz: Tz, ) -> Option<i64>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl TimestampOp for TimestampMicrosecondType

Source§

type Duration = DurationMicrosecondType

Source§

fn add_year_month(left: i64, right: i32, tz: Tz) -> Option<i64>

Source§

fn add_day_time(left: i64, right: IntervalDayTime, tz: Tz) -> Option<i64>

Source§

fn add_month_day_nano( left: i64, right: IntervalMonthDayNano, tz: Tz, ) -> Option<i64>

Source§

fn sub_year_month(left: i64, right: i32, tz: Tz) -> Option<i64>

Source§

fn sub_day_time(left: i64, right: IntervalDayTime, tz: Tz) -> Option<i64>

Source§

fn sub_month_day_nano( left: i64, right: IntervalMonthDayNano, tz: Tz, ) -> Option<i64>

Source§

impl TimestampOp for TimestampMillisecondType

Source§

type Duration = DurationMillisecondType

Source§

fn add_year_month(left: i64, right: i32, tz: Tz) -> Option<i64>

Source§

fn add_day_time(left: i64, right: IntervalDayTime, tz: Tz) -> Option<i64>

Source§

fn add_month_day_nano( left: i64, right: IntervalMonthDayNano, tz: Tz, ) -> Option<i64>

Source§

fn sub_year_month(left: i64, right: i32, tz: Tz) -> Option<i64>

Source§

fn sub_day_time(left: i64, right: IntervalDayTime, tz: Tz) -> Option<i64>

Source§

fn sub_month_day_nano( left: i64, right: IntervalMonthDayNano, tz: Tz, ) -> Option<i64>

Source§

impl TimestampOp for TimestampNanosecondType

Source§

type Duration = DurationNanosecondType

Source§

fn add_year_month(left: i64, right: i32, tz: Tz) -> Option<i64>

Source§

fn add_day_time(left: i64, right: IntervalDayTime, tz: Tz) -> Option<i64>

Source§

fn add_month_day_nano( left: i64, right: IntervalMonthDayNano, tz: Tz, ) -> Option<i64>

Source§

fn sub_year_month(left: i64, right: i32, tz: Tz) -> Option<i64>

Source§

fn sub_day_time(left: i64, right: IntervalDayTime, tz: Tz) -> Option<i64>

Source§

fn sub_month_day_nano( left: i64, right: IntervalMonthDayNano, tz: Tz, ) -> Option<i64>

Source§

impl TimestampOp for TimestampSecondType

Source§

type Duration = DurationSecondType

Source§

fn add_year_month(left: i64, right: i32, tz: Tz) -> Option<i64>

Source§

fn add_day_time(left: i64, right: IntervalDayTime, tz: Tz) -> Option<i64>

Source§

fn add_month_day_nano( left: i64, right: IntervalMonthDayNano, tz: Tz, ) -> Option<i64>

Source§

fn sub_year_month(left: i64, right: i32, tz: Tz) -> Option<i64>

Source§

fn sub_day_time(left: i64, right: IntervalDayTime, tz: Tz) -> Option<i64>

Source§

fn sub_month_day_nano( left: i64, right: IntervalMonthDayNano, tz: Tz, ) -> Option<i64>

Implementors§