1future_date = datetime.datetime(1970, 1, 2)
2past_date = datetime.datetime(1970, 1, 1)
3
4difference = (future_date - past_date)
5Calculate difference in time
6
7
8total_seconds = difference.total_seconds()
9Convert time difference to seconds
10
11
12print(total_seconds)
13OUTPUT
1486400.0