def decimalHour(time_string):
    """ Converts time from the 24hrs hh:mm:ss format to HH.hhh format. """

    hh, mm, ss = time_string.split(':')

    hh, mm, ss = map(float, (hh, mm, ss))

    result = ((ss/60) + mm)/60 + hh

    return result