Library reference
Package datetime
The datetime package supplies classes for manipulating dates and times.
See description in the official Python docs.
Types
datetime
type
Represents date and time information.
Fields
Methods
__sub__
(other) -> datetime.timedelta
-
operator for datetime
objects.
time
type
Represents a time of day, independent of any particular day.
timedelta
type
A timedelta object represents a duration, the difference between two datetimes.
Was this page helpful?