monkey_wrench.date_time.models._base module

monkey_wrench.date_time.models._base.AwarePastDateTime

Type annotation and validator for a time-zone aware datetime object, which has past.

alias of Annotated[AwareDatetime, AfterValidator(func=~monkey_wrench.date_time.models._base.)]

monkey_wrench.date_time.models._base.TimeDeltaDict

Type annotation and validator for a timedelta object, given as a dictionary.

alias of Annotated[dict[Literal[‘weeks’, ‘days’, ‘hours’, ‘minutes’, ‘seconds’], float], FieldInfo(annotation=NoneType, required=True, metadata=[MinLen(min_length=1), MaxLen(max_length=5)]), AfterValidator(func=~monkey_wrench.date_time.models._base.)]

monkey_wrench.date_time.models._base.TimeInterval

Type alias for a time interval, given both as a timedelta or as a TimeDeltaDict.

alias of timedelta | Annotated[dict[Literal[‘weeks’, ‘days’, ‘hours’, ‘minutes’, ‘seconds’], float], FieldInfo(annotation=NoneType, required=True, metadata=[MinLen(min_length=1), MaxLen(max_length=5)]), AfterValidator(func=~monkey_wrench.date_time.models._base.)]