from datetime import datetime, timedelta
from dateutil.relativedelta import relativedelta
now = datetime.now()
other_time = now + timedelta(hours=8)
diff = relativedelta(other_time, now)
print(diff.hours)
Разница в один час в Python