(tz: &str)
| 89 | type Err = ArrowError; |
| 90 | |
| 91 | fn from_str(tz: &str) -> Result<Self, Self::Err> { |
| 92 | match parse_fixed_offset(tz) { |
| 93 | Some(offset) => Ok(Self(TzInner::Offset(offset))), |
| 94 | None => Ok(Self(TzInner::Timezone(tz.parse().map_err(|e| { |
| 95 | ArrowError::ParseError(format!("Invalid timezone \"{tz}\": {e}")) |
| 96 | })?))), |
| 97 | } |
| 98 | } |
| 99 | } |
| 100 | |
| 101 | impl Display for Tz { |
nothing calls this directly
no test coverage detected