File: time.m

package info (click to toggle)
superlu 5.3.0%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 11,976 kB
  • sloc: ansic: 59,420; makefile: 405; fortran: 185; csh: 141
file content (9 lines) | stat: -rw-r--r-- 368 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
function y = time()
%TIME   Timestamp.
%       S = TIME returns a string containing the date and time.
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))];