Returns value as a chrono `NaiveDateTime`, handling time resolution If a data type cannot be converted to `NaiveDateTime`, a `None` is returned. A valid value is expected, thus the user should first check for validity. See notes on [`PrimitiveArray::value`] regarding nulls and panics
(&self, i: usize)
| 1280 | /// |
| 1281 | /// See notes on [`PrimitiveArray::value`] regarding nulls and panics |
| 1282 | pub fn value_as_datetime(&self, i: usize) -> Option<NaiveDateTime> { |
| 1283 | as_datetime::<T>(i64::from(self.value(i))) |
| 1284 | } |
| 1285 | |
| 1286 | /// Returns value as a chrono `NaiveDateTime`, handling time resolution with the provided tz |
| 1287 | /// |