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

Method with_timezone_opt

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

Construct a timestamp array with an optional timezone

(self, timezone: Option<S>)

Source from the content-addressed store, hash-verified

1578
1579 /// Construct a timestamp array with an optional timezone
1580 pub fn with_timezone_opt<S: Into<Arc<str>>>(self, timezone: Option<S>) -> Self {
1581 Self {
1582 data_type: DataType::Timestamp(T::UNIT, timezone.map(Into::into)),
1583 ..self
1584 }
1585 }
1586}
1587
1588/// Constructs a `PrimitiveArray` from an array data reference.

Callers 12

create_random_arrayFunction · 0.45
flushMethod · 0.45
make_timestamp_arrayFunction · 0.45
cast_string_to_timestampFunction · 0.45
cast_view_to_timestampFunction · 0.45
coerce_i32Function · 0.45
coerce_i64Function · 0.45
test_arrow_data_equalityFunction · 0.45
timestamp_opFunction · 0.45
with_timezoneMethod · 0.45

Calls 1

TimestampClass · 0.85