Pydantic · Type Alias
PastDate
PastDatetime and FutureDatetime constrain a datetime by its relation to the validation time. Use them to require a past or future value.
Last updated
Syntax
from pydantic import FutureDatetime
class Model(BaseModel):
value: FutureDatetimeIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
PastDateFutureDateAwareDatetimeNaiveDatetimedatetimeField