MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / _parse_dt

Function _parse_dt

src/core/system_selfcheck.py:81–88  ·  view source on GitHub ↗
(value: Any)

Source from the content-addressed store, hash-verified

79
80
81def _parse_dt(value: Any) -> Optional[datetime]:
82 text = str(value or "").strip()
83 if not text:
84 return None
85 try:
86 return datetime.fromisoformat(text.replace("Z", "+00:00")).replace(tzinfo=None)
87 except Exception:
88 return None
89
90
91def _clamp_int(value: Any, min_value: int, max_value: int, default: int) -> int:

Callers 1

rollback_repair_planFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected