Struct TimestampNanosecondType
pub struct TimestampNanosecondType {}
Expand description
Timestamp nanosecond type with an optional timezone.
Implementations§
§impl TimestampNanosecondType
impl TimestampNanosecondType
pub fn add_year_months(
timestamp: <TimestampNanosecondType as ArrowPrimitiveType>::Native,
delta: <IntervalYearMonthType as ArrowPrimitiveType>::Native,
tz: Tz,
) -> Option<<TimestampNanosecondType as ArrowPrimitiveType>::Native>
pub fn add_year_months( timestamp: <TimestampNanosecondType as ArrowPrimitiveType>::Native, delta: <IntervalYearMonthType as ArrowPrimitiveType>::Native, tz: Tz, ) -> Option<<TimestampNanosecondType as ArrowPrimitiveType>::Native>
Adds the given IntervalYearMonthType to an arrow TimestampNanosecondType
§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: <TimestampNanosecondType as ArrowPrimitiveType>::Native,
delta: <IntervalDayTimeType as ArrowPrimitiveType>::Native,
tz: Tz,
) -> Option<<TimestampNanosecondType as ArrowPrimitiveType>::Native>
pub fn add_day_time( timestamp: <TimestampNanosecondType as ArrowPrimitiveType>::Native, delta: <IntervalDayTimeType as ArrowPrimitiveType>::Native, tz: Tz, ) -> Option<<TimestampNanosecondType as ArrowPrimitiveType>::Native>
Adds the given IntervalDayTimeType to an arrow TimestampNanosecondType
§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: <TimestampNanosecondType as ArrowPrimitiveType>::Native,
delta: <IntervalMonthDayNanoType as ArrowPrimitiveType>::Native,
tz: Tz,
) -> Option<<TimestampNanosecondType as ArrowPrimitiveType>::Native>
pub fn add_month_day_nano( timestamp: <TimestampNanosecondType as ArrowPrimitiveType>::Native, delta: <IntervalMonthDayNanoType as ArrowPrimitiveType>::Native, tz: Tz, ) -> Option<<TimestampNanosecondType as ArrowPrimitiveType>::Native>
Adds the given IntervalMonthDayNanoType to an arrow TimestampNanosecondType
§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: <TimestampNanosecondType as ArrowPrimitiveType>::Native,
delta: <IntervalYearMonthType as ArrowPrimitiveType>::Native,
tz: Tz,
) -> Option<<TimestampNanosecondType as ArrowPrimitiveType>::Native>
pub fn subtract_year_months( timestamp: <TimestampNanosecondType as ArrowPrimitiveType>::Native, delta: <IntervalYearMonthType as ArrowPrimitiveType>::Native, tz: Tz, ) -> Option<<TimestampNanosecondType as ArrowPrimitiveType>::Native>
Subtracts the given IntervalYearMonthType to an arrow TimestampNanosecondType
§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: <TimestampNanosecondType as ArrowPrimitiveType>::Native,
delta: <IntervalDayTimeType as ArrowPrimitiveType>::Native,
tz: Tz,
) -> Option<<TimestampNanosecondType as ArrowPrimitiveType>::Native>
pub fn subtract_day_time( timestamp: <TimestampNanosecondType as ArrowPrimitiveType>::Native, delta: <IntervalDayTimeType as ArrowPrimitiveType>::Native, tz: Tz, ) -> Option<<TimestampNanosecondType as ArrowPrimitiveType>::Native>
Subtracts the given IntervalDayTimeType to an arrow TimestampNanosecondType
§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: <TimestampNanosecondType as ArrowPrimitiveType>::Native,
delta: <IntervalMonthDayNanoType as ArrowPrimitiveType>::Native,
tz: Tz,
) -> Option<<TimestampNanosecondType as ArrowPrimitiveType>::Native>
pub fn subtract_month_day_nano( timestamp: <TimestampNanosecondType as ArrowPrimitiveType>::Native, delta: <IntervalMonthDayNanoType as ArrowPrimitiveType>::Native, tz: Tz, ) -> Option<<TimestampNanosecondType as ArrowPrimitiveType>::Native>
Subtracts the given IntervalMonthDayNanoType to an arrow TimestampNanosecondType
§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 TimestampNanosecondType
impl ArrowPrimitiveType for TimestampNanosecondType
§fn get_byte_width() -> usize
fn get_byte_width() -> usize
👎Deprecated: Use ArrowNativeType::get_byte_width
Returns the byte width of this primitive type.
§fn default_value() -> Self::Native
fn default_value() -> Self::Native
Returns a default value of this primitive type. Read more
§impl ArrowTimestampType for TimestampNanosecondType
impl ArrowTimestampType for TimestampNanosecondType
§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 TimestampNanosecondType
impl Debug for TimestampNanosecondType
§impl Parser for TimestampNanosecondType
impl Parser for TimestampNanosecondType
Source§impl RandomTemporalValue for TimestampNanosecondType
impl RandomTemporalValue for TimestampNanosecondType
Source§fn value_range() -> impl SampleRange<Self::Native>
fn value_range() -> impl SampleRange<Self::Native>
Range of values for a timestamp in nanoseconds. The range begins at the start of the unix epoch and continues for 100 years.
impl ArrowTemporalType for TimestampNanosecondType
Auto Trait Implementations§
impl Freeze for TimestampNanosecondType
impl RefUnwindSafe for TimestampNanosecondType
impl Send for TimestampNanosecondType
impl Sync for TimestampNanosecondType
impl Unpin for TimestampNanosecondType
impl UnwindSafe for TimestampNanosecondType
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