MCPcopy Create free account
hub / github.com/bugy/script-server / parse_iso_datetime

Function parse_iso_datetime

src/utils/date_utils.py:49–50  ·  view source on GitHub ↗
(date_str)

Source from the content-addressed store, hash-verified

47
48
49def parse_iso_datetime(date_str):
50 return datetime.strptime(date_str, '%Y-%m-%dT%H:%M:%S.%fZ').replace(tzinfo=timezone.utc)
51
52
53def to_iso_string(datetime_value: datetime):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected