I made a program in python that it takes the current time, time, convert in seconds and subtract one from the other to know the difference between it. My question is, how do I convert those seconds to hours and days?
Code that converts date to seconds:
from datetime import date, datetime
import time
date_now = time.mktime(datetime.now().timetuple())
date_created = time.mktime(get_demand_if_exist[0].date_created.timetuple())
diff_time = abs(date_now - date_created)