Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anomalyco/opencode-sdk-python
/ parse_datetime
Function
parse_datetime
src/opencode_ai/_compat.py:28–29 ·
view source on GitHub ↗
(value: Union[datetime, StrBytesIntFloat])
Source
from the content-addressed store, hash-verified
26
...
27
28
def
parse_datetime(value: Union[datetime, StrBytesIntFloat]) -> datetime:
# noqa: ARG001
29
...
30
31
def
get_args(t: type[Any]) -> tuple[Any, ...]:
# noqa: ARG001
32
...
Callers
3
construct_type
Function · 0.85
test_nested_list_iso6801_format
Function · 0.85
test_datetime_custom_format
Function · 0.85
Calls
no outgoing calls
Tested by
2
test_nested_list_iso6801_format
Function · 0.68
test_datetime_custom_format
Function · 0.68