THE ORIONIS API
Build with clarity.
Explore the building blocks of an async-first Python framework. Every module, class, and method — connected, searchable, and ready to build with.
class documentation
class DateTimeStorage: (source)
Bind a datetime according to its column's storage policy.
| Method | bind |
Store managed timestamps in UTC and user casts in application time. |
| Instance Variable | aware |
Whether the column accepts a datetime with an offset. |
| Instance Variable | managed |
Whether the ORM maintains this timestamp in UTC. |
Store managed timestamps in UTC and user casts in application time.
| Parameters | |
value:datetime.datetime, str or float | Datetime, ISO text or POSIX timestamp supplied to the model. |
| Returns | |
datetime.datetime | Value using the timezone representation accepted by the column. |
| Raises | |
ValueError | If a string cannot be parsed as an ISO datetime. |