1a_timedelta = datetime.timedelta(seconds=24*60*60)
2
3timedelta_seconds = a_timedelta.total_seconds()
4
5print(timedelta_seconds)
6OUTPUT
786400.0
1import datetime
2datetime.datetime.timestamp(datetime.timedelta(hours=1, days=2, seconds=1000)).total_seconds()