pub struct TimestampSecondType {}Expand description
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,
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
Sourcepub 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
Sourcepub 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
Sourcepub 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
Sourcepub 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
Sourcepub 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 ArrowTemporalType for TimestampSecondType
Source§impl ArrowTimestampType for TimestampSecondType
impl ArrowTimestampType for TimestampSecondType
Source§fn make_value(naive: NaiveDateTime) -> Option<i64>
fn make_value(naive: NaiveDateTime) -> Option<i64>
Use from_naive_datetime instead
NaiveDateTime Read moreSource§fn from_naive_datetime(naive: NaiveDateTime, tz: Option<&Tz>) -> Option<i64>
fn from_naive_datetime(naive: NaiveDateTime, tz: Option<&Tz>) -> Option<i64>
NaiveDateTime interpreted in the given timezone. Read moreSource§impl Debug for TimestampSecondType
impl Debug for TimestampSecondType
Source§impl Parser for TimestampSecondType
impl Parser for TimestampSecondType
Source§impl RandomTemporalValue for TimestampSecondType
Available on crate feature test_utils only.
impl RandomTemporalValue for TimestampSecondType
test_utils only.Source§fn value_range() -> impl SampleRange<Self::Native>
fn value_range() -> impl SampleRange<Self::Native>
Range of values for a timestamp in seconds. The range begins at the start of the unix epoch and continues for 100 years.