1 function str=stime(t,red)
3 % convert time given as datenum to string and day from start
6 % red struct with field base_time
10 timefmt='dd-mmm-yyyy HH:MM:SS';
11 if ~isscalar(t) | ~isnumeric(t),
12 error('t must be a number')
14 str=sprintf('%s %g days from start',datestr(t,timefmt),...