.. currentmodule:: datetime .. _datetime.timedelta: class timedelta -- Represents a duration ======================================== A timedelta object represents a duration, or the difference between two :py:class:`~datetime.datetime` or :py:class:`~datetime.date` instances. .. class:: timedelta(...) .. attribute:: days .. attribute:: isoformat .. attribute:: max .. attribute:: min .. attribute:: microseconds .. attribute:: resolution .. attribute:: seconds .. attribute:: total_seconds