Skip to content

motorhead.model.utcdatetime

UTCDatetime = Annotated[datetime, AfterValidator(_ensure_utc)] module-attribute

Pydantic datetime that accepts only naive and UTC datetime objects and replaces the timezone of naive datetimes with UTC.