(datetime_string: str)
| 260 | |
| 261 | |
| 262 | def parse_iso8601_like(datetime_string: str) -> dict[str, str | None]: |
| 263 | for pattern in _PATTERNS: |
| 264 | match = re.match(pattern, datetime_string) |
| 265 | if match: |
| 266 | return match.groupdict() |
| 267 | raise ValueError( |
| 268 | f"no ISO-8601 or cftime-string-like match for string: {datetime_string}" |
| 269 | ) |
| 270 | |
| 271 | |
| 272 | def _parse_iso8601(date_type, timestr): |
searching dependent graphs…