I have two datetimes:
When I subtract one from the other and print the timedelta, which is > 1 day, I get this:
>>> 5 days, 23:33:32.265709
But if the timedelta is < 1 day, I get this:
>>> 4:35:16.744049
What I need is the number of days to be at the start of the output even if it is 0 (ideally in HH format) so that I can take that number and carry out logic on it, e.g. if it is greater than 7 days then do this.