MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / parse_iso

Function parse_iso

tests/loadtest/tools/dashboard_parser.py:112–118  ·  view source on GitHub ↗
(value: Any)

Source from the content-addressed store, hash-verified

110
111
112def parse_iso(value: Any) -> datetime:
113 if not value:
114 return datetime.fromtimestamp(0, tz=timezone.utc)
115 try:
116 return datetime.fromisoformat(str(value).replace("Z", "+00:00"))
117 except ValueError:
118 return datetime.fromtimestamp(0, tz=timezone.utc)
119
120
121def parse_file(path: Path, root: Path) -> dict[str, Any] | None:

Callers 1

find_matching_ndjsonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected