ID EN
Datetime

total_seconds

Python 3.11

Return the total number of seconds contained in the duration. Equivalent to td / timedelta(seconds=1). For interval units other than seconds, use the division form directly (e.g. td / timedelta(microseconds=1)).

Syntax

PYTHON
timedelta.total_seconds()