Datetime
A Datetime wraps an ISO 8601 datetime string for use with SurrealDB's datetime type. It preserves the original string representation through serialization and deserialization.
Constructor
| Parameter | Type | Description |
|---|---|---|
dt | str | An ISO 8601 datetime string. |
Examples
Properties
| Property | Type | Description |
|---|---|---|
dt | str | The ISO 8601 datetime string. |
Usage
See Also
Data Types — All SDK data types
Duration — Duration type with unit conversion