Struct TimestampSecondType
pub struct TimestampSecondType {}Expand description
Timestamp second type with an optional timezone.
Implementations§
§impl TimestampSecondType
impl TimestampSecondType
pub fn add_year_months(
timestamp: <TimestampSecondType as ArrowPrimitiveType>::Native,
delta: <IntervalYearMonthType as ArrowPrimitiveType>::Native,
tz: Tz,
) -> Option<<TimestampSecondType as ArrowPrimitiveType>::Native>
pub fn add_year_months( timestamp: <TimestampSecondType as ArrowPrimitiveType>::Native, delta: <IntervalYearMonthType as ArrowPrimitiveType>::Native, tz: Tz, ) -> Option<<TimestampSecondType as ArrowPrimitiveType>::Native>
Adds the given IntervalYearMonthType to an arrow TimestampSecondType.
Returns None when it will result in overflow.
§Arguments
timestamp- The date on which to perform the operationdelta- The interval to addtz- The timezone in which to interprettimestamp
pub fn add_day_time(
timestamp: <TimestampSecondType as ArrowPrimitiveType>::Native,
delta: <IntervalDayTimeType as ArrowPrimitiveType>::Native,
tz: Tz,
) -> Option<<TimestampSecondType as ArrowPrimitiveType>::Native>
pub fn add_day_time( timestamp: <TimestampSecondType as ArrowPrimitiveType>::Native, delta: <IntervalDayTimeType as ArrowPrimitiveType>::Native, tz: Tz, ) -> Option<<TimestampSecondType as ArrowPrimitiveType>::Native>
Adds the given IntervalDayTimeType to an arrow TimestampSecondType.
Returns None when it will result in overflow.
§Arguments
timestamp- The date on which to perform the operationdelta- The interval to addtz- The timezone in which to interprettimestamp
pub fn add_month_day_nano(
timestamp: <TimestampSecondType as ArrowPrimitiveType>::Native,
delta: <IntervalMonthDayNanoType as ArrowPrimitiveType>::Native,
tz: Tz,
) -> Option<<TimestampSecondType as ArrowPrimitiveType>::Native>
pub fn add_month_day_nano( timestamp: <TimestampSecondType as ArrowPrimitiveType>::Native, delta: <IntervalMonthDayNanoType as ArrowPrimitiveType>::Native, tz: Tz, ) -> Option<<TimestampSecondType as ArrowPrimitiveType>::Native>
Adds the given IntervalMonthDayNanoType to an arrow TimestampSecondType
Returns None when it will result in overflow.
§Arguments
timestamp- The date on which to perform the operationdelta- The interval to addtz- The timezone in which to interprettimestamp
pub fn subtract_year_months(
timestamp: <TimestampSecondType as ArrowPrimitiveType>::Native,
delta: <IntervalYearMonthType as ArrowPrimitiveType>::Native,
tz: Tz,
) -> Option<<TimestampSecondType as ArrowPrimitiveType>::Native>
pub fn subtract_year_months( timestamp: <TimestampSecondType as ArrowPrimitiveType>::Native, delta: <IntervalYearMonthType as ArrowPrimitiveType>::Native, tz: Tz, ) -> Option<<TimestampSecondType as ArrowPrimitiveType>::Native>
Subtracts the given IntervalYearMonthType to an arrow TimestampSecondType
Returns None when it will result in overflow.
§Arguments
timestamp- The date on which to perform the operationdelta- The interval to addtz- The timezone in which to interprettimestamp
pub fn subtract_day_time(
timestamp: <TimestampSecondType as ArrowPrimitiveType>::Native,
delta: <IntervalDayTimeType as ArrowPrimitiveType>::Native,
tz: Tz,
) -> Option<<TimestampSecondType as ArrowPrimitiveType>::Native>
pub fn subtract_day_time( timestamp: <TimestampSecondType as ArrowPrimitiveType>::Native, delta: <IntervalDayTimeType as ArrowPrimitiveType>::Native, tz: Tz, ) -> Option<<TimestampSecondType as ArrowPrimitiveType>::Native>
Subtracts the given IntervalDayTimeType to an arrow TimestampSecondType
Returns None when it will result in overflow.
§Arguments
timestamp- The date on which to perform the operationdelta- The interval to addtz- The timezone in which to interprettimestamp
pub fn subtract_month_day_nano(
timestamp: <TimestampSecondType as ArrowPrimitiveType>::Native,
delta: <IntervalMonthDayNanoType as ArrowPrimitiveType>::Native,
tz: Tz,
) -> Option<<TimestampSecondType as ArrowPrimitiveType>::Native>
pub fn subtract_month_day_nano( timestamp: <TimestampSecondType as ArrowPrimitiveType>::Native, delta: <IntervalMonthDayNanoType as ArrowPrimitiveType>::Native, tz: Tz, ) -> Option<<TimestampSecondType as ArrowPrimitiveType>::Native>
Subtracts the given IntervalMonthDayNanoType to an arrow TimestampSecondType
Returns None when it will result in overflow.
§Arguments
timestamp- The date on which to perform the operationdelta- The interval to addtz- The timezone in which to interprettimestamp
Trait Implementations§
§impl ArrowPrimitiveType for TimestampSecondType
impl ArrowPrimitiveType for TimestampSecondType
§impl ArrowTimestampType for TimestampSecondType
impl ArrowTimestampType for TimestampSecondType
§fn make_value(naive: NaiveDateTime) -> Option<i64>
fn make_value(naive: NaiveDateTime) -> Option<i64>
Creates a ArrowTimestampType::Native from the provided
NaiveDateTime Read more§impl Debug for TimestampSecondType
impl Debug for TimestampSecondType
§impl Parser for TimestampSecondType
impl Parser for TimestampSecondType
Source§impl ScalarType<i64> for TimestampSecondType
impl ScalarType<i64> for TimestampSecondType
impl ArrowTemporalType for TimestampSecondType
Auto Trait Implementations§
impl Freeze for TimestampSecondType
impl RefUnwindSafe for TimestampSecondType
impl Send for TimestampSecondType
impl Sync for TimestampSecondType
impl Unpin for TimestampSecondType
impl UnwindSafe for TimestampSecondType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more