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: ncdatelim_documentation.m
    path of file: ./repos/CDT/cdt/doc
    
    the code of the file until where you have to start completion: %% |ncdatelim| documentation 
%
% This function reads the first and last time value from a time variable in
% one or more netCDF files, and converts these values to datetimes. 
%
% <CDT_Contents.html Back to 
    
function reads the first and last time value from a time variable in
% one or more netCDF files, and converts these values to datetimes. 
%
% <CDT_Contents.html Back to Climate Data Tools Contents>
%% Syntax
%
%  tlim = ncdatelim(files, var) 
%
%% Description
%
% |tlim = ncdatelim(files, var)| reads data from the file or files indicated
% by the string/character array or cell array of strings |files|.  It reads
% the first and last value of the time variable |var|, assuming that
% variable uses a standard (i.e. gregorian) calend