MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / parse_timestamp

Function parse_timestamp

scripts/auto_close_duplicate_issues.py:89–93  ·  view source on GitHub ↗
(value: str)

Source from the content-addressed store, hash-verified

87
88
89def parse_timestamp(value: str) -> datetime:
90 try:
91 return datetime.fromisoformat(value.replace('Z', '+00:00'))
92 except ValueError as exc:
93 raise ValueError(f'Failed to parse timestamp {value!r}: {exc}') from exc
94
95
96def ensure_page_limit(page: int, resource_name: str) -> None:

Callers 2

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected