The datetime module supplies classes for manipulating dates and times. While date and time arithmetic is supported, the focus of the implementation is on ...
The result is correct. days = -1, seconds=72120 comes from a normalization of the delta value. For calculating the time in hours: 72.120 s / 60 / 60 ≈ 20h
In Python, timedelta is a data type within the datetime module used to represent durations or differences between two points in time. Short Answer: What Is Python's... · Basic Arithmetic With timedelta