MCPcopy Create free account
hub / github.com/apache/arrow-rs / value_as_datetime_with_tz

Method value_as_datetime_with_tz

arrow-array/src/array/primitive_array.rs:1292–1294  ·  view source on GitHub ↗

Returns value as a chrono `NaiveDateTime`, handling time resolution with the provided tz functionally it is same as `value_as_datetime`, however it adds the passed tz to the to-be-returned NaiveDateTime See notes on [`PrimitiveArray::value`] regarding nulls and panics

(&self, i: usize, tz: Tz)

Source from the content-addressed store, hash-verified

1290 ///
1291 /// See notes on [`PrimitiveArray::value`] regarding nulls and panics
1292 pub fn value_as_datetime_with_tz(&self, i: usize, tz: Tz) -> Option<DateTime<Tz>> {
1293 as_datetime_with_timezone::<T>(i64::from(self.value(i)), tz)
1294 }
1295
1296 /// Returns value as a chrono `NaiveDate` by using `Self::datetime()`
1297 ///

Callers

nothing calls this directly

Calls 1

valueMethod · 0.45

Tested by

no test coverage detected