Struct arrow::array::types::Date64Type
source · pub struct Date64Type {}
Expand description
64-bit date type: the elapsed time since UNIX epoch in milliseconds (64 bits). Values must be divisible by 86_400_000
. See DataType::Date64
for more details.
Implementations§
source§impl Date64Type
impl Date64Type
sourcepub fn to_naive_date(i: <Date64Type as ArrowPrimitiveType>::Native) -> NaiveDate
pub fn to_naive_date(i: <Date64Type as ArrowPrimitiveType>::Native) -> NaiveDate
sourcepub fn from_naive_date(
d: NaiveDate,
) -> <Date64Type as ArrowPrimitiveType>::Native
pub fn from_naive_date( d: NaiveDate, ) -> <Date64Type as ArrowPrimitiveType>::Native
sourcepub fn add_year_months(
date: <Date64Type as ArrowPrimitiveType>::Native,
delta: <IntervalYearMonthType as ArrowPrimitiveType>::Native,
) -> <Date64Type as ArrowPrimitiveType>::Native
pub fn add_year_months( date: <Date64Type as ArrowPrimitiveType>::Native, delta: <IntervalYearMonthType as ArrowPrimitiveType>::Native, ) -> <Date64Type as ArrowPrimitiveType>::Native
Adds the given IntervalYearMonthType to an arrow Date64Type
§Arguments
date
- The date on which to perform the operationdelta
- The interval to add
sourcepub fn add_day_time(
date: <Date64Type as ArrowPrimitiveType>::Native,
delta: <IntervalDayTimeType as ArrowPrimitiveType>::Native,
) -> <Date64Type as ArrowPrimitiveType>::Native
pub fn add_day_time( date: <Date64Type as ArrowPrimitiveType>::Native, delta: <IntervalDayTimeType as ArrowPrimitiveType>::Native, ) -> <Date64Type as ArrowPrimitiveType>::Native
Adds the given IntervalDayTimeType to an arrow Date64Type
§Arguments
date
- The date on which to perform the operationdelta
- The interval to add
sourcepub fn add_month_day_nano(
date: <Date64Type as ArrowPrimitiveType>::Native,
delta: <IntervalMonthDayNanoType as ArrowPrimitiveType>::Native,
) -> <Date64Type as ArrowPrimitiveType>::Native
pub fn add_month_day_nano( date: <Date64Type as ArrowPrimitiveType>::Native, delta: <IntervalMonthDayNanoType as ArrowPrimitiveType>::Native, ) -> <Date64Type as ArrowPrimitiveType>::Native
Adds the given IntervalMonthDayNanoType to an arrow Date64Type
§Arguments
date
- The date on which to perform the operationdelta
- The interval to add
sourcepub fn subtract_year_months(
date: <Date64Type as ArrowPrimitiveType>::Native,
delta: <IntervalYearMonthType as ArrowPrimitiveType>::Native,
) -> <Date64Type as ArrowPrimitiveType>::Native
pub fn subtract_year_months( date: <Date64Type as ArrowPrimitiveType>::Native, delta: <IntervalYearMonthType as ArrowPrimitiveType>::Native, ) -> <Date64Type as ArrowPrimitiveType>::Native
Subtract the given IntervalYearMonthType to an arrow Date64Type
§Arguments
date
- The date on which to perform the operationdelta
- The interval to subtract
sourcepub fn subtract_day_time(
date: <Date64Type as ArrowPrimitiveType>::Native,
delta: <IntervalDayTimeType as ArrowPrimitiveType>::Native,
) -> <Date64Type as ArrowPrimitiveType>::Native
pub fn subtract_day_time( date: <Date64Type as ArrowPrimitiveType>::Native, delta: <IntervalDayTimeType as ArrowPrimitiveType>::Native, ) -> <Date64Type as ArrowPrimitiveType>::Native
Subtract the given IntervalDayTimeType to an arrow Date64Type
§Arguments
date
- The date on which to perform the operationdelta
- The interval to subtract
sourcepub fn subtract_month_day_nano(
date: <Date64Type as ArrowPrimitiveType>::Native,
delta: <IntervalMonthDayNanoType as ArrowPrimitiveType>::Native,
) -> <Date64Type as ArrowPrimitiveType>::Native
pub fn subtract_month_day_nano( date: <Date64Type as ArrowPrimitiveType>::Native, delta: <IntervalMonthDayNanoType as ArrowPrimitiveType>::Native, ) -> <Date64Type as ArrowPrimitiveType>::Native
Subtract the given IntervalMonthDayNanoType to an arrow Date64Type
§Arguments
date
- The date on which to perform the operationdelta
- The interval to subtract
Trait Implementations§
source§impl ArrowPrimitiveType for Date64Type
impl ArrowPrimitiveType for Date64Type
source§const DATA_TYPE: DataType = DataType::Date64
const DATA_TYPE: DataType = DataType::Date64
the corresponding Arrow data type of this primitive type.
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 Debug for Date64Type
impl Debug for Date64Type
source§impl Parser for Date64Type
impl Parser for Date64Type
impl ArrowTemporalType for Date64Type
Auto Trait Implementations§
impl Freeze for Date64Type
impl RefUnwindSafe for Date64Type
impl Send for Date64Type
impl Sync for Date64Type
impl Unpin for Date64Type
impl UnwindSafe for Date64Type
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