Temporal
id: py-Temporal
Temporal
Base interface for date/time objects that support standard string formatting.
Implemented by DateTime and LocalDate.
Methods
| Method | Returns | Description |
|---|---|---|
toISOString() | str | ISO 8601 representation |
toString() | str | Human-readable string representation |
dt = DateTime.now()
dt.toISOString() # "2024-09-03T12:34:56.789Z"
dt.toString() # "2024-09-03T12:34:56.789Z"