MATLAB Function Reference Previous page   Next Page

Return current time as date vector



c = clock returns a 6-element date vector containing the current date and time in decimal form:

The first five elements are integers. The seconds element is accurate to several digits beyond the decimal point. The statement fix(clock) rounds to integer display format.

See Also

cputime, datenum, datevec, etime, tic, toc

Previous page  clipboard close Next page

© 1994-2005 The MathWorks, Inc.