Returns a value as a chrono `Duration` If a data type cannot be converted to `Duration`, a `None` is returned See notes on [`PrimitiveArray::value`] regarding nulls and panics
(&self, i: usize)
| 1317 | /// |
| 1318 | /// See notes on [`PrimitiveArray::value`] regarding nulls and panics |
| 1319 | pub fn value_as_duration(&self, i: usize) -> Option<Duration> { |
| 1320 | as_duration::<T>(i64::from(self.value(i))) |
| 1321 | } |
| 1322 | } |
| 1323 | |
| 1324 | impl<T: ArrowPrimitiveType> std::fmt::Debug for PrimitiveArray<T> { |