convert datetime timedelta to seconds code example
Example: python convert datetime.timedelta into seconds
a_timedelta = datetime.timedelta(seconds=24*60*60)
timedelta_seconds = a_timedelta.total_seconds()
print(timedelta_seconds)
OUTPUT
86400.0
a_timedelta = datetime.timedelta(seconds=24*60*60)
timedelta_seconds = a_timedelta.total_seconds()
print(timedelta_seconds)
OUTPUT
86400.0