def convert_seconds_to_hours_mins_secs(seconds_in):
    """Converts seconds to HH:MM:SS format."""
    temp_seconds = int(seconds_in)
    seconds = temp_seconds % 60
    minutes = temp_seconds / 60
    hours = minutes / 60
    minutes = minutes % 60
    out_str = "{:0>2d}:{:0>2d}:{:0>2d}".format(int(hours), int(minutes), int(seconds))
    return out_str