isoformat
Returns a string representing the date or time in ISO 8601 format.
def isoformat(
o: datetime.date | datetime.time
) - > string
Converts a date or time object into its ISO 8601 formatted string representation.
Parameters
| Name | Type | Description |
|---|---|---|
| o | `datetime.date | datetime.time` |
Returns
| Type | Description |
|---|---|
string | The ISO 8601 formatted string representing the provided date or time object. |