datetime.timedelta

class datetime.timedelta

Difference between two datetime values.

__init__()

x.__init__(...) initializes x; see help(type(x)) for signature

Methods

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).
total_seconds()

Total seconds in the duration.

days

Number of days.

microseconds

Number of microseconds (>= 0 and less than 1 second).

seconds

Number of seconds (>= 0 and less than 1 day).

Navigation