clock

Return current time as date vector

Calling Sequence

c = clock

Description

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

c = [year month day hour minute seconds]

the first five elements are integers. The seconds element is accurate to several digits beyond the decimal point.

Examples

clock

See Also

  • datenum Convert to serial date number
  • datevec Date components
  • timer cpu time
  • etime Elapsed time
  • tic start a stopwatch timer
  • toc Read the stopwatch timer

Table Of Contents

This Page