def translate_time(x):
    """
    translate time from hours to hours and minutes

    Parameters
    ----------
    x : float
        Something like 6.75 

    Returns
    -------
    y : str
        Something like '6:45'

    """
    y = str(int(x)).zfill(2) + ":" + str(int((x*60) % 60)).zfill(2)
    return y