ORIONIS API REFERENCE

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)

View In Hierarchy

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.
def bind(self, value: datetime | str | float) -> datetime: (source)

Store managed timestamps in UTC and user casts in application time.

Parameters
value:datetime.datetime, str or floatDatetime, ISO text or POSIX timestamp supplied to the model.
Returns
datetime.datetimeValue using the timezone representation accepted by the column.
Raises
ValueErrorIf a string cannot be parsed as an ISO datetime.

Whether the column accepts a datetime with an offset.

Whether the ORM maintains this timestamp in UTC.