tahoma2d/thirdparty/superlu/SuperLU_4.1/MATLAB/time.m
2016-03-24 01:31:57 +09:00

12 lines
425 B
Matlab

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