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