Struct TimestampMillisecondType
pub struct TimestampMillisecondType {}Expand description
Timestamp millisecond type with an optional timezone.
Implementations§
§impl TimestampMillisecondType
impl TimestampMillisecondType
pub fn add_year_months(
timestamp: <TimestampMillisecondType as ArrowPrimitiveType>::Native,
delta: <IntervalYearMonthType as ArrowPrimitiveType>::Native,
tz: Tz,
) -> Option<<TimestampMillisecondType as ArrowPrimitiveType>::Native>
pub fn add_year_months( timestamp: <TimestampMillisecondType as ArrowPrimitiveType>::Native, delta: <IntervalYearMonthType as ArrowPrimitiveType>::Native, tz: Tz, ) -> Option<<TimestampMillisecondType as ArrowPrimitiveType>::Native>
Adds the given IntervalYearMonthType to an arrow TimestampMillisecondType
§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: <TimestampMillisecondType as ArrowPrimitiveType>::Native,
delta: <IntervalDayTimeType as ArrowPrimitiveType>::Native,
tz: Tz,
) -> Option<<TimestampMillisecondType as ArrowPrimitiveType>::Native>
pub fn add_day_time( timestamp: <TimestampMillisecondType as ArrowPrimitiveType>::Native, delta: <IntervalDayTimeType as ArrowPrimitiveType>::Native, tz: Tz, ) -> Option<<TimestampMillisecondType as ArrowPrimitiveType>::Native>
Adds the given IntervalDayTimeType to an arrow TimestampMillisecondType
§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: <TimestampMillisecondType as ArrowPrimitiveType>::Native,
delta: <IntervalMonthDayNanoType as ArrowPrimitiveType>::Native,
tz: Tz,
) -> Option<<TimestampMillisecondType as ArrowPrimitiveType>::Native>
pub fn add_month_day_nano( timestamp: <TimestampMillisecondType as ArrowPrimitiveType>::Native, delta: <IntervalMonthDayNanoType as ArrowPrimitiveType>::Native, tz: Tz, ) -> Option<<TimestampMillisecondType as ArrowPrimitiveType>::Native>
Adds the given IntervalMonthDayNanoType to an arrow TimestampMillisecondType
§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: <TimestampMillisecondType as ArrowPrimitiveType>::Native,
delta: <IntervalYearMonthType as ArrowPrimitiveType>::Native,
tz: Tz,
) -> Option<<TimestampMillisecondType as ArrowPrimitiveType>::Native>
pub fn subtract_year_months( timestamp: <TimestampMillisecondType as ArrowPrimitiveType>::Native, delta: <IntervalYearMonthType as ArrowPrimitiveType>::Native, tz: Tz, ) -> Option<<TimestampMillisecondType as ArrowPrimitiveType>::Native>
Subtracts the given IntervalYearMonthType to an arrow TimestampMillisecondType
§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: <TimestampMillisecondType as ArrowPrimitiveType>::Native,
delta: <IntervalDayTimeType as ArrowPrimitiveType>::Native,
tz: Tz,
) -> Option<<TimestampMillisecondType as ArrowPrimitiveType>::Native>
pub fn subtract_day_time( timestamp: <TimestampMillisecondType as ArrowPrimitiveType>::Native, delta: <IntervalDayTimeType as ArrowPrimitiveType>::Native, tz: Tz, ) -> Option<<TimestampMillisecondType as ArrowPrimitiveType>::Native>
Subtracts the given IntervalDayTimeType to an arrow TimestampMillisecondType
§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: <TimestampMillisecondType as ArrowPrimitiveType>::Native,
delta: <IntervalMonthDayNanoType as ArrowPrimitiveType>::Native,
tz: Tz,
) -> Option<<TimestampMillisecondType as ArrowPrimitiveType>::Native>
pub fn subtract_month_day_nano( timestamp: <TimestampMillisecondType as ArrowPrimitiveType>::Native, delta: <IntervalMonthDayNanoType as ArrowPrimitiveType>::Native, tz: Tz, ) -> Option<<TimestampMillisecondType as ArrowPrimitiveType>::Native>
Subtracts the given IntervalMonthDayNanoType to an arrow TimestampMillisecondType
§Arguments
timestamp- The date on which to perform the operationdelta- The interval to addtz- The timezone in which to interprettimestamp
Trait Implementations§
§impl ArrowTimestampType for TimestampMillisecondType
impl ArrowTimestampType for TimestampMillisecondType
§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 TimestampMillisecondType
impl Debug for TimestampMillisecondType
§impl Parser for TimestampMillisecondType
impl Parser for TimestampMillisecondType
Source§impl ScalarType<i64> for TimestampMillisecondType
impl ScalarType<i64> for TimestampMillisecondType
impl ArrowTemporalType for TimestampMillisecondType
Auto Trait Implementations§
impl Freeze for TimestampMillisecondType
impl RefUnwindSafe for TimestampMillisecondType
impl Send for TimestampMillisecondType
impl Sync for TimestampMillisecondType
impl Unpin for TimestampMillisecondType
impl UnwindSafe for TimestampMillisecondType
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