c = clock
clock returns a six-element row vector c containing the current time and date in decimal form:
[year month day hour minute seconds]
The first five elements are integers. The seconds element is accurate to several digits beyond the decimal point.
This represents August 4, 1994, 10:20:32.fix(clock)ans =1994 8 4 10 20 32
date, etime, tic, toc(c) Copyright 1994 by The MathWorks, Inc.