def splittime(seconds):
    """converts time given in seconds into a tuple: (hours, mins, secs)"""
    tmp = seconds
    hh = tmp / 3600
    tmp %= 3600
    mm = tmp / 60
    tmp %= 60
    ss = tmp
    return hh, mm, ss
