add +1 hour to datetime.time() django on forloop
Timedelta (from datetime) can be used to increment or decrement a datatime objects. Unfortunately, it cannot be directly combined with datetime.time objects. 
If the values that are stored in your time column are datetime objects, you can use them (e.g.: my_datetime + timedelta(hours=1)). If they are time objects, you'll need to think if they represent a moment in time (in that case, they should be converted to datetime objects) or a duration (in that case, it's probably easier to store it as an integer representing the total amount of minutes, and to perform all operations on integers).
I have code like this, I want to check in the time range that has overtime and sum it.
currently, am trying out.hour+1 with this code, but didn't work.


    overtime_all = 5
    overtime_total_hours = 0
    out = datetime.time(14, 30)

    while overtime_all > 0:
        overtime200 = object.filter(time__range=(out, out.hour+1)).count()
        overtime_total_hours = overtime_total_hours + overtime200
        overtime_all -=1

    print overtime_total_hours


how to add 1 hour every loop?...