How do I tell the time difference in minutes between two datetime objects?
datetime
This is how I get the number of hours that elapsed between two datetime.datetime objects:
before = datetime.datetime.now() after = datetime.datetime.now() hours = math.floor(((after - before).seconds) / 3600)