def getTime(t):
    """
    Returns a string after converting time in seconds to hours/mins/secs

    Paramters:
        t (float): time in seconds
    Returns:
        s (str): number of hours, if more than 1 hour
                number of minutes and seconds, if more than 1 minute
                number of seconds, otherwise
    """
    if t >= 3600:
        s = str(round(t // (3600), 2)) + " hours.\n"
    elif t >= 60:
        s = str(t // 60) + " mins, " + str(t % 60) + " secs.\n"
    else:
        s = str(t) + " secs.\n"
    return s