You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: secs2hms.m
    path of file: ./repos/TIGRE/MATLAB/Third_party_tools/sec2hours
    
    the code of the file until where you have to start completion: %SECS2HMS - converts a time in seconds to a string giving the time in hours, minutes and second
    
function time_string=secs2hms(time_in_secs)
    time_string='';
    nhours = 0;
    nmins = 0;
    if time_in_secs >= 3600
        nhours = floor(time_in_secs/3600);
        if nhours > 1
            hour_string = ' hours, ';
        else
            hour_string = ' hour, ';
        end