deeporigin.utils.iso8601¶
Shared parsing for ISO-8601 timestamps returned by platform APIs (for example
execution startedAt / completedAt strings).
ISO-8601 timestamp parsing helpers for API payloads.
Functions¶
parse_iso_timestamp_utc
¶
parse_iso_timestamp_utc(value: str) -> datetime
Parse an ISO-8601 timestamp string to an aware UTC :class:~datetime.datetime.
Accepts API-style values ending in Z (normalized to +00:00 for
:func:datetime.fromisoformat) and offset-aware strings. Naive strings are
interpreted as UTC.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
str
|
ISO-8601 timestamp (e.g. tools API |
required |
Returns:
| Type | Description |
|---|---|
datetime
|
The same instant in UTC ( |