datatypes::value

Function time_to_scalar_value

Source
pub fn time_to_scalar_value(
    unit: TimeUnit,
    val: Option<i64>,
) -> Result<ScalarValue>
Expand description

Cast the 64-bit elapsed time into the arrow ScalarValue by time unit.