Struct Date32Type
pub struct Date32Type {}
Expand description
32-bit date type: the elapsed time since UNIX epoch in days (32 bits).
Implementations§
§impl Date32Type
impl Date32Type
pub fn to_naive_date(i: <Date32Type as ArrowPrimitiveType>::Native) -> NaiveDate
pub fn to_naive_date(i: <Date32Type as ArrowPrimitiveType>::Native) -> NaiveDate
pub fn from_naive_date(
d: NaiveDate,
) -> <Date32Type as ArrowPrimitiveType>::Native
pub fn from_naive_date( d: NaiveDate, ) -> <Date32Type as ArrowPrimitiveType>::Native
pub fn add_year_months(
date: <Date32Type as ArrowPrimitiveType>::Native,
delta: <IntervalYearMonthType as ArrowPrimitiveType>::Native,
) -> <Date32Type as ArrowPrimitiveType>::Native
pub fn add_year_months( date: <Date32Type as ArrowPrimitiveType>::Native, delta: <IntervalYearMonthType as ArrowPrimitiveType>::Native, ) -> <Date32Type as ArrowPrimitiveType>::Native
Adds the given IntervalYearMonthType to an arrow Date32Type
§Arguments
date
- The date on which to perform the operationdelta
- The interval to add
pub fn add_day_time(
date: <Date32Type as ArrowPrimitiveType>::Native,
delta: <IntervalDayTimeType as ArrowPrimitiveType>::Native,
) -> <Date32Type as ArrowPrimitiveType>::Native
pub fn add_day_time( date: <Date32Type as ArrowPrimitiveType>::Native, delta: <IntervalDayTimeType as ArrowPrimitiveType>::Native, ) -> <Date32Type as ArrowPrimitiveType>::Native
Adds the given IntervalDayTimeType to an arrow Date32Type
§Arguments
date
- The date on which to perform the operationdelta
- The interval to add
pub fn add_month_day_nano(
date: <Date32Type as ArrowPrimitiveType>::Native,
delta: <IntervalMonthDayNanoType as ArrowPrimitiveType>::Native,
) -> <Date32Type as ArrowPrimitiveType>::Native
pub fn add_month_day_nano( date: <Date32Type as ArrowPrimitiveType>::Native, delta: <IntervalMonthDayNanoType as ArrowPrimitiveType>::Native, ) -> <Date32Type as ArrowPrimitiveType>::Native
Adds the given IntervalMonthDayNanoType to an arrow Date32Type
§Arguments
date
- The date on which to perform the operationdelta
- The interval to add
pub fn subtract_year_months(
date: <Date32Type as ArrowPrimitiveType>::Native,
delta: <IntervalYearMonthType as ArrowPrimitiveType>::Native,
) -> <Date32Type as ArrowPrimitiveType>::Native
pub fn subtract_year_months( date: <Date32Type as ArrowPrimitiveType>::Native, delta: <IntervalYearMonthType as ArrowPrimitiveType>::Native, ) -> <Date32Type as ArrowPrimitiveType>::Native
Subtract the given IntervalYearMonthType to an arrow Date32Type
§Arguments
date
- The date on which to perform the operationdelta
- The interval to subtract
pub fn subtract_day_time(
date: <Date32Type as ArrowPrimitiveType>::Native,
delta: <IntervalDayTimeType as ArrowPrimitiveType>::Native,
) -> <Date32Type as ArrowPrimitiveType>::Native
pub fn subtract_day_time( date: <Date32Type as ArrowPrimitiveType>::Native, delta: <IntervalDayTimeType as ArrowPrimitiveType>::Native, ) -> <Date32Type as ArrowPrimitiveType>::Native
Subtract the given IntervalDayTimeType to an arrow Date32Type
§Arguments
date
- The date on which to perform the operationdelta
- The interval to subtract
pub fn subtract_month_day_nano(
date: <Date32Type as ArrowPrimitiveType>::Native,
delta: <IntervalMonthDayNanoType as ArrowPrimitiveType>::Native,
) -> <Date32Type as ArrowPrimitiveType>::Native
pub fn subtract_month_day_nano( date: <Date32Type as ArrowPrimitiveType>::Native, delta: <IntervalMonthDayNanoType as ArrowPrimitiveType>::Native, ) -> <Date32Type as ArrowPrimitiveType>::Native
Subtract the given IntervalMonthDayNanoType to an arrow Date32Type
§Arguments
date
- The date on which to perform the operationdelta
- The interval to subtract
Trait Implementations§
§impl ArrowPrimitiveType for Date32Type
impl ArrowPrimitiveType for Date32Type
§const DATA_TYPE: DataType = DataType::Date32
const DATA_TYPE: DataType = DataType::Date32
the corresponding Arrow data type of this primitive type.
§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 Debug for Date32Type
impl Debug for Date32Type
§impl Parser for Date32Type
impl Parser for Date32Type
Source§impl RandomTemporalValue for Date32Type
impl RandomTemporalValue for Date32Type
Source§fn value_range() -> impl SampleRange<Self::Native>
fn value_range() -> impl SampleRange<Self::Native>
Range of values representing the elapsed time since UNIX epoch in days. The range begins at the start of the unix epoch and continues for 100 years.
impl ArrowTemporalType for Date32Type
Auto Trait Implementations§
impl Freeze for Date32Type
impl RefUnwindSafe for Date32Type
impl Send for Date32Type
impl Sync for Date32Type
impl Unpin for Date32Type
impl UnwindSafe for Date32Type
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