Construct a timestamp array with an optional timezone
(self, timezone: Option<S>)
| 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. |