MCPcopy Index your code
hub / github.com/pydata/xarray / parse_iso8601_like

Function parse_iso8601_like

xarray/coding/times.py:262–269  ·  view source on GitHub ↗
(datetime_string: str)

Source from the content-addressed store, hash-verified

260
261
262def 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
272def _parse_iso8601(date_type, timestr):

Callers 2

test_parse_iso8601_likeFunction · 0.90
_parse_iso8601Function · 0.85

Calls 1

matchMethod · 0.45

Tested by 1

test_parse_iso8601_likeFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…