tahoma2d/thirdparty/superlu/SuperLU_4.1/MATLAB/time.m

13 lines
425 B
Mathematica
Raw Normal View History

2016-03-24 05:25:36 +13:00
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))];