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