%% timcon.m converts time given in the hours and minutes
%% ie 1230 being 12 hours and 30 minutes to fractional
%% hours ie 1230 -> 12.5

function tim=timcon(tim)

timlc=rem(tim,100);              %remainer after original time divided by 100 (ie number of minutes)
timlc2=floor(tim/100);           %number of times 100 divdes orginal time (ie number of hours)
tim=timlc2+timlc/60;             %time in fractional hours

