UtcDatetime#
- type safir.pydantic.UtcDatetime = Annotated[datetime.datetime, pydantic.functional_validators.AfterValidator(func=safir.pydantic._validators.normalize_datetime)]#
Coerce a
datetimeto UTC.Accepts as input all of the normal Pydantic representations of a
datetime, but then forces the result to be timezone-aware and in UTC.