def convert_time_str(minutes: float) -> str:

    """Converts a time given in minutes to hours, minutes and seconds in a string."""

    if minutes % 60 != minutes:
        hours = minutes // 60
        minutes -= hours * 60
    else:
        hours = 0

    seconds = (minutes * 60) % 60
    minutes -= seconds / 60

    return f"{int(hours):03d}:{int(minutes):02d}:{int(seconds):02d}"