datetime.timedelta

class datetime.timedelta

Difference between two datetime values.

Methods

__format__ default object formatter
__new__((S, ...)
__reduce__() -> (cls, state)
__reduce_ex__ helper for pickle
__sizeof__(() -> int) size of object in memory, in bytes
__subclasshook__ Abstract classes can override this to customize issubclass().
total_seconds Total seconds in the duration.

Attributes

days Number of days.
max
microseconds Number of microseconds (>= 0 and less than 1 second).
min
resolution
seconds Number of seconds (>= 0 and less than 1 day).