Get timezone information if available
(&self)
| 225 | |
| 226 | /// Get timezone information if available |
| 227 | pub fn get_timezone_info(&self) -> Option<String> { |
| 228 | match self { |
| 229 | Value::DateTime(_) => Some("UTC".to_string()), |
| 230 | Value::DateTimeWithFixedOffset(dt) => Some(dt.timezone().to_string()), |
| 231 | Value::DateTimeWithNamedTz(tz_name, _) => Some(tz_name.clone()), |
| 232 | _ => None, |
| 233 | } |
| 234 | } |
| 235 | |
| 236 | /// Extract as array if possible |
| 237 | pub fn as_array(&self) -> Option<&Vec<Value>> { |