NoneDate
datethyme.NoneDate
Bases: OptionalDate
, BaseModel
Empty date for cases where this may be superior to using None.
Methods:
-
__init__
– -
__str__
– -
__repr__
– -
__add__
–Simply returns itself: nt + 42 == nt
-
__sub__
–Simply returns itself: nt - 42 == nt
-
__bool__
–False in all cases.
-
__eq__
–NoneDate is only equal to instances of NoneDate.
-
__lt__
–False in all cases.
-
__gt__
–False in all cases.
-
__le__
–False in all cases.
-
__ge__
–False in all cases.
Attributes:
-
model_config
– -
year
(None
) – -
month
(None
) – -
day
(None
) –
model_config = ConfigDict(frozen=True)
class-attribute
instance-attribute
year: None = Field(default=None, frozen=True)
class-attribute
instance-attribute
month: None = Field(default=None, frozen=True)
class-attribute
instance-attribute
day: None = Field(default=None, frozen=True)
class-attribute
instance-attribute
__init__() -> None
__str__() -> str
__repr__() -> str
__add__(_: Any) -> Self
Simply returns itself: nt + 42 == nt
__sub__(_: Any) -> Self
Simply returns itself: nt - 42 == nt
__bool__() -> bool
False in all cases.
__eq__(other: object) -> bool
NoneDate is only equal to instances of NoneDate.
__lt__(other: object) -> bool
False in all cases.
__gt__(other: object) -> bool
False in all cases.
__le__(other: object) -> bool
False in all cases.
__ge__(other: object) -> bool
False in all cases.