clock
Current date and time as a 6-element vector.
Syntax
Section titled “Syntax”t = clockDescription
Section titled “Description”Returns the current date/time as [year month day hour minute second]. The seconds element is fractional — sub-second precision included.
Example
Section titled “Example”clock % e.g. [2026 4 28 13 25 51.123]