arrow_cast::cast::string

Function cast_string_to_timestamp

Source
pub(crate) fn cast_string_to_timestamp<O: OffsetSizeTrait, T: ArrowTimestampType>(
    array: &dyn Array,
    to_tz: &Option<Arc<str>>,
    cast_options: &CastOptions<'_>,
) -> Result<ArrayRef, ArrowError>
Expand description

Casts generic string arrays to an ArrowTimestampType (TimeStampNanosecondArray, etc.)