Skip to main content

timestamp_to_date64

Function timestamp_to_date64 

Source
pub(crate) fn timestamp_to_date64<T: ArrowTimestampType>(
    array: &PrimitiveArray<T>,
    cast_options: &CastOptions<'_>,
) -> Result<ArrayRef, ArrowError>
Expand description

Casts a timestamp array to Date64.

Date64 values must be whole days, so this truncates to the start of the day the same way timestamp_to_date32 does: in the array’s timezone when it has one, otherwise rounding down so that a timestamp just before the epoch belongs to the preceding day.