Extract as datetime with fixed offset if possible
(&self)
| 199 | |
| 200 | /// Extract as datetime with fixed offset if possible |
| 201 | pub fn as_datetime_with_offset(&self) -> Option<&DateTime<FixedOffset>> { |
| 202 | match self { |
| 203 | Value::DateTimeWithFixedOffset(dt) => Some(dt), |
| 204 | _ => None, |
| 205 | } |
| 206 | } |
| 207 | |
| 208 | /// Extract as datetime with named timezone if possible |
| 209 | pub fn as_datetime_with_named_tz(&self) -> Option<(&str, &DateTime<Utc>)> { |
nothing calls this directly
no outgoing calls
no test coverage detected