Struct arrow_array::types::TimestampSecondType
source · pub struct TimestampSecondType {}
Expand description
A timestamp second type with an optional timezone.
Implementations§
source§impl TimestampSecondType
impl TimestampSecondType
sourcepub fn add_year_months(
timestamp: <TimestampSecondType as ArrowPrimitiveType>::Native,
delta: <IntervalYearMonthType as ArrowPrimitiveType>::Native
) -> Result<<TimestampSecondType as ArrowPrimitiveType>::Native, ArrowError>
pub fn add_year_months( timestamp: <TimestampSecondType as ArrowPrimitiveType>::Native, delta: <IntervalYearMonthType as ArrowPrimitiveType>::Native ) -> Result<<TimestampSecondType as ArrowPrimitiveType>::Native, ArrowError>
Adds the given IntervalYearMonthType to an arrow TimestampSecondType
Arguments
timestamp
- The date on which to perform the operationdelta
- The interval to add
sourcepub fn add_day_time(
timestamp: <TimestampSecondType as ArrowPrimitiveType>::Native,
delta: <IntervalDayTimeType as ArrowPrimitiveType>::Native
) -> Result<<TimestampSecondType as ArrowPrimitiveType>::Native, ArrowError>
pub fn add_day_time( timestamp: <TimestampSecondType as ArrowPrimitiveType>::Native, delta: <IntervalDayTimeType as ArrowPrimitiveType>::Native ) -> Result<<TimestampSecondType as ArrowPrimitiveType>::Native, ArrowError>
Adds the given IntervalDayTimeType to an arrow TimestampSecondType
Arguments
timestamp
- The date on which to perform the operationdelta
- The interval to add
sourcepub fn add_month_day_nano(
timestamp: <TimestampSecondType as ArrowPrimitiveType>::Native,
delta: <IntervalMonthDayNanoType as ArrowPrimitiveType>::Native
) -> Result<<TimestampSecondType as ArrowPrimitiveType>::Native, ArrowError>
pub fn add_month_day_nano( timestamp: <TimestampSecondType as ArrowPrimitiveType>::Native, delta: <IntervalMonthDayNanoType as ArrowPrimitiveType>::Native ) -> Result<<TimestampSecondType as ArrowPrimitiveType>::Native, ArrowError>
Adds the given IntervalMonthDayNanoType to an arrow TimestampSecondType
Arguments
timestamp
- The date on which to perform the operationdelta
- The interval to add
sourcepub fn subtract_year_months(
timestamp: <TimestampSecondType as ArrowPrimitiveType>::Native,
delta: <IntervalYearMonthType as ArrowPrimitiveType>::Native
) -> Result<<TimestampSecondType as ArrowPrimitiveType>::Native, ArrowError>
pub fn subtract_year_months( timestamp: <TimestampSecondType as ArrowPrimitiveType>::Native, delta: <IntervalYearMonthType as ArrowPrimitiveType>::Native ) -> Result<<TimestampSecondType as ArrowPrimitiveType>::Native, ArrowError>
Subtracts the given IntervalYearMonthType to an arrow TimestampSecondType
Arguments
timestamp
- The date on which to perform the operationdelta
- The interval to add
sourcepub fn subtract_day_time(
timestamp: <TimestampSecondType as ArrowPrimitiveType>::Native,
delta: <IntervalDayTimeType as ArrowPrimitiveType>::Native
) -> Result<<TimestampSecondType as ArrowPrimitiveType>::Native, ArrowError>
pub fn subtract_day_time( timestamp: <TimestampSecondType as ArrowPrimitiveType>::Native, delta: <IntervalDayTimeType as ArrowPrimitiveType>::Native ) -> Result<<TimestampSecondType as ArrowPrimitiveType>::Native, ArrowError>
Subtracts the given IntervalDayTimeType to an arrow TimestampSecondType
Arguments
timestamp
- The date on which to perform the operationdelta
- The interval to add
sourcepub fn subtract_month_day_nano(
timestamp: <TimestampSecondType as ArrowPrimitiveType>::Native,
delta: <IntervalMonthDayNanoType as ArrowPrimitiveType>::Native
) -> Result<<TimestampSecondType as ArrowPrimitiveType>::Native, ArrowError>
pub fn subtract_month_day_nano( timestamp: <TimestampSecondType as ArrowPrimitiveType>::Native, delta: <IntervalMonthDayNanoType as ArrowPrimitiveType>::Native ) -> Result<<TimestampSecondType as ArrowPrimitiveType>::Native, ArrowError>
Subtracts the given IntervalMonthDayNanoType to an arrow TimestampSecondType
Arguments
timestamp
- The date on which to perform the operationdelta
- The interval to add
Trait Implementations§
source§impl ArrowPrimitiveType for TimestampSecondType
impl ArrowPrimitiveType for TimestampSecondType
source§fn get_byte_width() -> usize
fn get_byte_width() -> usize
Returns the byte width of this primitive type.
source§fn default_value() -> Self::Native
fn default_value() -> Self::Native
Returns a default value of this primitive type. Read more
source§impl ArrowTimestampType for TimestampSecondType
impl ArrowTimestampType for TimestampSecondType
source§fn make_value(naive: NaiveDateTime) -> Option<i64>
fn make_value(naive: NaiveDateTime) -> Option<i64>
Creates a ArrowTimestampType::Native from the provided
NaiveDateTime
Read moresource§fn get_time_unit() -> TimeUnit
fn get_time_unit() -> TimeUnit
👎Deprecated: Use Self::UNIT
Returns the
TimeUnit
of this timestamp.source§impl Debug for TimestampSecondType
impl Debug for TimestampSecondType
impl ArrowNumericType for TimestampSecondType
impl ArrowTemporalType for TimestampSecondType
Auto Trait Implementations§
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