kusano 7d535a
function y = time()
kusano 7d535a
%TIME   Timestamp.
kusano 7d535a
%       S = TIME returns a string containing the date and time.
kusano 7d535a
 
kusano 7d535a
%       Copyright (c) 1984-93 by The MathWorks, Inc.
kusano 7d535a
 
kusano 7d535a
t = clock;
kusano 7d535a
base = t(1) - rem(t(1),100);
kusano 7d535a
months = ['Jan';'Feb';'Mar';'Apr';'May';'Jun';
kusano 7d535a
          'Jul';'Aug';'Sep';'Oct';'Nov';'Dec'];
kusano 7d535a
y = [int2str(t(3)),'-',months(t(2),:),'-',int2str(t(1)-base), ...
kusano 7d535a
     '  ',int2str(t(4)),':', int2str(t(5)),':', int2str(t(6))];