I have following code:
import pandas as pd
current_date = pd.Timestamp.now() #2018-08-17 16:05:53.842894
created_date = pd.to_datetime("2018-07-23 09:52:06.090000")
diffrence = (pd.Timedelta(current_date - feed_created_date).seconds)
print(diffrence)
#output is - 22427
The ideal output should be 2,182,487. I am not able to findout why this is giving the incorrect output or I am doing something wrong.
Any help will be appreciated. Thanks in advance.