Is there any way to directly get the seconds using date time diff or any library, API, sample code, without using conversion like hrs to mins, mins to sec etc..? because I just need the seconds date, hrs, mins will be ignored,
Example:
10/28/2015 08:54:54 - 10/28/2015 07:54:54 = 3600 seconds
10/28/2015 08:54:54 - 10/27/2015 07:54:54 = 90000 seconds
10/28/2015 08:54:54 - 10/28/2015 08:54:10 = 44 seconds
Note: Using this format (time.strftime("%m/%d/%y %I:%M:%S")) as datetime
I am using this link as my reference http://www.onlineconversion.com/days_between_advanced.htm