datetime
MINYEAR = 1
MAXYEAR = 9999
MAXORDINAL = 3652059
MAX_DELTA_DAYS = 999999999
class timedelta
Fields
3
min
ClassVar[timedelta]
max
ClassVar[timedelta]
resolution
ClassVar[timedelta]
Constructors
2
Properties
3
Methods
1
Special methods
20
__mul__(self: Self, other: int, /) -> timedelta
__mul__(self: Self, other: float, /) -> timedelta
__rmul__(self: Self, other: int, /) -> timedelta
__rmul__(self: Self, other: float, /) -> timedelta
__truediv__(self: Self, other: timedelta, /) -> float
__truediv__(self: Self, other: float, /) -> timedelta
__truediv__(self: Self, other: int, /) -> timedelta
__floordiv__(self: Self, other: timedelta, /) -> int
__floordiv__(self: Self, other: int, /) -> timedelta
class IsoCalendarDate
Fields
3
year
int
week
int
weekday
int
Special methods
1
class date
Fields
3
min
ClassVar[date]
max
ClassVar[date]
resolution
ClassVar[timedelta]
Constructors
1
Properties
3
Methods
13
Special methods
11
__sub__(self: Self, other: timedelta, /) -> date
__sub__(self: Self, other: date, /) -> timedelta
class time
Fields
3
min
ClassVar[time]
max
ClassVar[time]
resolution
ClassVar[timedelta]
Constructors
1
Properties
4
Methods
3
Special methods
3
class datetime
Fields
3
min
ClassVar[datetime]
max
ClassVar[datetime]
resolution
ClassVar[timedelta]
Constructors
1
Properties
7
Methods
21
replace(self: Self, /, year: int = -1, month: int = -1, day: int = -1, hour: int = -1, minute: int = -1, second: int = -1, microsecond: int = -1) -> datetime
Special methods
11
__sub__(self: Self, other: timedelta, /) -> datetime
__sub__(self: Self, other: datetime, /) -> timedelta