Function arrow2::temporal_conversions::utf8_to_timestamp_ns
source · [−]pub fn utf8_to_timestamp_ns<O: Offset>(
array: &Utf8Array<O>,
fmt: &str,
timezone: String
) -> Result<PrimitiveArray<i64>>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
timezoneare converted totimezone. - parsed values without timezone are null. Use
utf8_to_naive_timestamp_nsto 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.