Function re_sdk::external::arrow2::temporal_conversions::utf8_to_timestamp_ns
pub fn utf8_to_timestamp_ns<O>(
array: &Utf8Array<O>,
fmt: &str,
timezone: Arc<String>
) -> Result<PrimitiveArray<i64>, Error>where
O: Offset,
Expand description
Parses a Utf8Array
to a timeozone-aware timestamp, i.e. PrimitiveArray<i64>
with type Timestamp(Nanosecond, Some(timezone))
.
§Implementation
- parsed values with timezone other than
timezone
are converted totimezone
. - parsed values without timezone are null. Use
utf8_to_naive_timestamp_ns
to parse naive timezones. - Null elements remain null; non-parsable elements are null.
The feature
"chrono-tz"
enables IANA and zoneinfo formats fortimezone
.
§Error
This function errors iff timezone
is not parsable to an offset.